fishbowl/engine/include/fishbone/mixer.h
2026-05-28 14:07:42 +09:00

32 lines
605 B
C++

#ifndef __FISHBONE_MIXER_H__
#define __FISHBONE_MIXER_H__
namespace fishbone {
class Mixer;
};
#include <fishbone/machdep.h>
#include <fishbone/sound.h>
#include <fishbone/thread.h>
namespace fishbone {
class Mixer {
fishbone::Mutex* mutex;
public:
Mixer();
~Mixer();
void read(short* buffer, size_t frames);
fishbone::Sound* open(const char* path);
void lock();
void unlock();
static const int rate = 44100;
std::vector<fishbone::SoundLoader*> loaders;
std::vector<fishbone::Sound*> sounds;
float position[3];
};
}; // namespace fishbone
#endif