fishbowl/engine/include/fishbone/mixer.h
2026-06-01 13:50:35 +09:00

33 lines
602 B
C++

#ifndef __FISHBONE_MIXER_H__
#define __FISHBONE_MIXER_H__
#include <fishbone/pre.h>
namespace fishbone {
class Mixer;
};
#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