move work on TinyAudio.

This commit is contained in:
Erwin Coumans
2017-04-28 11:35:00 -07:00
parent e6759cfa4f
commit 37a16f7e6b
8 changed files with 325 additions and 102 deletions

View File

@@ -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);