many stuffs

This commit is contained in:
Nishi 2026-05-27 16:03:38 +09:00
commit a88fce53e2
27 changed files with 4343 additions and 16 deletions

View file

@ -7,12 +7,22 @@ namespace fishbone {
#include <fishbone/machdep.h>
#include <fishbone/sound.h>
#include <fishbone/thread.h>
namespace fishbone {
class Mixer {
public:
fishbone::Mutex mutex;
public:
Mixer();
~Mixer();
void read(short* buffer, size_t frames);
fishbone::Sound* open(const char* path);
static const int rate = 44100;
std::vector<fishbone::SoundLoader*> loaders;
std::vector<fishbone::Sound*> sounds;
std::vector<fishbone::Sound*> sounds;
};
}; // namespace fishbone