move work on TinyAudio.
This commit is contained in:
@@ -3,6 +3,20 @@
|
||||
|
||||
#include "Bullet3Common/b3Scalar.h"
|
||||
|
||||
struct b3SoundMessage
|
||||
{
|
||||
int m_type;//B3_SOUND_SOURCE_TYPE
|
||||
double m_amplitude;
|
||||
|
||||
double m_frequency;
|
||||
int m_wavId;
|
||||
|
||||
double m_attack;
|
||||
double m_decay;
|
||||
double m_sustain;
|
||||
double m_release;
|
||||
};
|
||||
|
||||
class b3SoundEngine
|
||||
{
|
||||
struct b3SoundEngineInternalData* m_data;
|
||||
@@ -12,13 +26,12 @@ class b3SoundEngine
|
||||
b3SoundEngine();
|
||||
virtual ~b3SoundEngine();
|
||||
|
||||
void init();
|
||||
void init(int maxNumSoundSources, bool useRealTimeDac);
|
||||
void exit();
|
||||
|
||||
//int createListener();
|
||||
|
||||
void addSoundSource(class b3SoundSource* source);
|
||||
void removeSoundSource(class b3SoundSource* source);
|
||||
int getAvailableSoundSource();
|
||||
void startSound(int soundSourceIndex, b3SoundMessage msg);
|
||||
void releaseSound(int soundSourceIndex);
|
||||
|
||||
int loadWavFile(const char* fileName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user