Added generator audio stream, and spectrum analyzer audio effect
Made AudioFrame and Vector2 equivalent for casting. Added ability to obtain the playback object from stream players. Added ability to obtain effect instance from audio server.
This commit is contained in:
parent
f75b9e6246
commit
e33764744c
14 changed files with 628 additions and 0 deletions
|
|
@ -31,6 +31,7 @@
|
|||
#ifndef AUDIOFRAME_H
|
||||
#define AUDIOFRAME_H
|
||||
|
||||
#include "core/math/vector2.h"
|
||||
#include "core/typedefs.h"
|
||||
|
||||
static inline float undenormalise(volatile float f) {
|
||||
|
|
@ -128,6 +129,14 @@ struct AudioFrame {
|
|||
return *this;
|
||||
}
|
||||
|
||||
_ALWAYS_INLINE_ operator Vector2() const {
|
||||
return Vector2(l, r);
|
||||
}
|
||||
|
||||
_ALWAYS_INLINE_ AudioFrame(const Vector2 &p_v2) {
|
||||
l = p_v2.x;
|
||||
r = p_v2.y;
|
||||
}
|
||||
_ALWAYS_INLINE_ AudioFrame() {}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue