mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 15:14:35 +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
31
Engine/lib/bullet/examples/TinyAudio/b3SoundSource.h
Normal file
31
Engine/lib/bullet/examples/TinyAudio/b3SoundSource.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#ifndef B3_SOUND_SOURCE_H
|
||||
#define B3_SOUND_SOURCE_H
|
||||
|
||||
#include "b3Sound_C_Api.h"
|
||||
|
||||
class b3SoundSource
|
||||
{
|
||||
struct b3SoundSourceInternalData* m_data;
|
||||
|
||||
public:
|
||||
b3SoundSource();
|
||||
virtual ~b3SoundSource();
|
||||
|
||||
virtual bool computeSamples(double* sampleBuffer, int numSamples, double sampleRate);
|
||||
|
||||
int getNumOscillators() const;
|
||||
void setOscillatorType(int oscillatorIndex, int type);
|
||||
void setOscillatorFrequency(int oscillatorIndex, double frequency);
|
||||
void setOscillatorAmplitude(int oscillatorIndex, double amplitude);
|
||||
void setOscillatorPhase(int oscillatorIndex, double phase);
|
||||
void setADSR(double attackRate, double decayRate, double sustainLevel, double releaseRate);
|
||||
|
||||
bool setWavFile(int oscillatorIndex, class b3ReadWavFile* wavFilePtr, int sampleRate);
|
||||
|
||||
void startSound(bool autoKeyOff);
|
||||
void stopSound();
|
||||
|
||||
bool isAvailable() const;
|
||||
};
|
||||
|
||||
#endif //B3_SOUND_SOURCE_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue