mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 07:34:45 +00:00
update bullet so it actually works
Moved the addSourceDirectory for physics/Bullet into the Engine/Source/CMakeLists.txt file that way it can actually appear where we expect it to in the solution explorer.
This commit is contained in:
parent
c7be48130a
commit
13fa178cf6
5986 changed files with 1811270 additions and 453803 deletions
55
Engine/lib/bullet/examples/TinyAudio/b3SoundEngine.h
Normal file
55
Engine/lib/bullet/examples/TinyAudio/b3SoundEngine.h
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
#ifndef B3_SOUND_ENGINE_H
|
||||
#define B3_SOUND_ENGINE_H
|
||||
|
||||
#include "Bullet3Common/b3Scalar.h"
|
||||
#include "b3Sound_C_Api.h"
|
||||
|
||||
struct b3SoundMessage
|
||||
{
|
||||
int m_type; //B3_SOUND_SOURCE_TYPE
|
||||
double m_amplitude;
|
||||
|
||||
double m_frequency;
|
||||
int m_wavId;
|
||||
|
||||
double m_attackRate;
|
||||
double m_decayRate;
|
||||
double m_sustainLevel;
|
||||
double m_releaseRate;
|
||||
bool m_autoKeyOff;
|
||||
|
||||
b3SoundMessage()
|
||||
: m_type(B3_SOUND_SOURCE_SINE_OSCILLATOR),
|
||||
m_amplitude(0.5),
|
||||
m_frequency(440),
|
||||
m_wavId(-1),
|
||||
m_attackRate(0.001),
|
||||
m_decayRate(0.00001),
|
||||
m_sustainLevel(0.5),
|
||||
m_releaseRate(0.0005),
|
||||
m_autoKeyOff(false)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
class b3SoundEngine
|
||||
{
|
||||
struct b3SoundEngineInternalData* m_data;
|
||||
|
||||
public:
|
||||
b3SoundEngine();
|
||||
virtual ~b3SoundEngine();
|
||||
|
||||
void init(int maxNumSoundSources, bool useRealTimeDac);
|
||||
void exit();
|
||||
|
||||
int getAvailableSoundSource();
|
||||
void startSound(int soundSourceIndex, b3SoundMessage msg);
|
||||
void releaseSound(int soundSourceIndex);
|
||||
|
||||
int loadWavFile(const char* fileName);
|
||||
|
||||
double getSampleRate() const;
|
||||
};
|
||||
|
||||
#endif //B3_SOUND_ENGINE_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue