3d audio
This commit is contained in:
parent
d214a59592
commit
a84dfac0d7
7 changed files with 48 additions and 8 deletions
|
|
@ -6,6 +6,7 @@
|
|||
#include <fstream>
|
||||
|
||||
#include <cstdio>
|
||||
#include <cmath>
|
||||
|
||||
#include <fishbone/config.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ namespace fishbone {
|
|||
static const int rate = 44100;
|
||||
std::vector<fishbone::SoundLoader*> loaders;
|
||||
std::vector<fishbone::Sound*> sounds;
|
||||
float position[3];
|
||||
};
|
||||
}; // namespace fishbone
|
||||
|
||||
|
|
|
|||
|
|
@ -87,8 +87,11 @@ namespace fishbone {
|
|||
void setLoop(bool v);
|
||||
bool isLoop();
|
||||
|
||||
int rate;
|
||||
int channels;
|
||||
int rate;
|
||||
int channels;
|
||||
float volume;
|
||||
bool is3d;
|
||||
float position[3];
|
||||
};
|
||||
|
||||
#define LOADER(X) FB_SOUND_DEF(X);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue