25#include "audio/mixer.h"
26#include "audio/audiostream.h"
27#include "awe/intern.h"
28#include "awe/sfx_player.h"
45 virtual int getRate()
const override {
return _player->_rate; }
46 virtual bool endOfData()
const override {
return false; }
48 int readBuffer(int16 *buffer,
const int numSamples)
override {
49 assert(_player !=
nullptr);
50 memset(buffer, 0, numSamples *
sizeof(int16));
51 _player->readSamples(buffer, numSamples);
72 void playMusic(
const char *path,
int loops);
73 void playAifcMusic(
const char *path, uint32 offset);
74 void playSfxMusic(
int num);
79 void preloadSoundAiff(
byte num,
const byte *data);
80 void playSoundRaw(
byte channel,
const byte *data,
size_t size,
81 int freq,
byte volume);
82 void playSoundWav(
byte channel,
const byte *data,
size_t size,
83 uint16 freq,
byte volume,
byte loop);
84 void playSoundAiff(
byte channel,
byte num,
byte volume);
85 void stopSound(
byte channel);
100 void init(MixerType mixerType);
104 void playSoundRaw(
byte channel,
const byte *data, uint16 freq,
byte volume);
105 void playSoundWav(
byte channel,
const byte *data, uint16 freq,
byte volume,
byte loop);
106 void stopSound(
byte channel);
107 void setChannelVolume(
byte channel,
byte volume);
108 void playMusic(
const char *path,
byte loop);
110 void playAifcMusic(
const char *path, uint32 offset);
111 void stopAifcMusic();
112 void playSfxMusic(
int num);
115 void preloadSoundAiff(
byte num,
const byte *data);
116 void playSoundAiff(
byte channel,
byte num,
byte volume);
Definition: audiostream.h:50
virtual bool endOfData() const override
Definition: sound.h:46
virtual int getRate() const override
Definition: sound.h:45
int readBuffer(int16 *buffer, const int numSamples) override
Definition: sound.h:48
bool isStereo() const override
Definition: sound.h:41
Definition: aifc_player.h:31
Definition: sfx_player.h:71