diff options
author | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
commit | 15740faf9fe9fe4be08965098bbf2947e096aeeb (patch) | |
tree | a730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Audio/AudioParameters.h |
Diffstat (limited to 'Runtime/Audio/AudioParameters.h')
-rw-r--r-- | Runtime/Audio/AudioParameters.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/Runtime/Audio/AudioParameters.h b/Runtime/Audio/AudioParameters.h new file mode 100644 index 0000000..e4b49be --- /dev/null +++ b/Runtime/Audio/AudioParameters.h @@ -0,0 +1,48 @@ +#ifndef ___AUDIOPARAMETERS_H__ +#define ___AUDIOPARAMETERS_H__ + +#include "Runtime/Math/Vector3.h" +#include "Runtime/Audio/correct_fmod_includer.h" +#include "Runtime/Math/AnimationCurve.h" + +enum RolloffMode { kRolloffLogarithmic=0, kRolloffLinear, kRolloffCustom }; + +struct AudioParameters +{ + // Animated props + AnimationCurve panLevelCustomCurve; + AnimationCurve spreadCustomCurve; + AnimationCurve rolloffCustomCurve; + + float insideConeAngle; + float outsideConeAngle; + float outsideConeVolume; + + int priority; + float dopplerLevel; + float minDistance; + float maxDistance; + float pan; + + float pitch; + float volume; + + // rolloff + RolloffMode rolloffMode; ///< enum { kRolloffLogarithmic=0, kRolloffLinear, kRolloffCustom } + + bool loop; // <-- this will be replaced by a loop node + bool mute; + +#if UNITY_WII + bool starving; // For streaming sounds, when data isn't coming due disk eject +#endif + + bool bypassEffects; // Bypass/ignore any applied effects from AudioSource + bool bypassListenerEffects; // Bypass/ignore any applied effects from AudioListener + bool bypassReverbZones; // Bypass/ignore any applied effects from reverb zones + bool ignoreListenerPause; +}; + + + +#endif // ___AUDIOPARAMETERS_H__ |