22 #ifndef AGI_SOUND_SARIEN_H 23 #define AGI_SOUND_SARIEN_H 25 #include "audio/audiostream.h" 29 #define BUFFER_SIZE 410 31 #define WAVEFORM_SIZE 64 32 #define ENV_ATTACK 10000 33 #define ENV_DECAY 1000 34 #define ENV_SUSTAIN 100 35 #define ENV_RELEASE 7500 36 #define NUM_CHANNELS 7 39 AGI_SOUND_LOOP = 0x0001,
40 AGI_SOUND_ENVELOPE = 0x0002
43 AGI_SOUND_ENV_ATTACK = 3,
44 AGI_SOUND_ENV_DECAY = 2,
45 AGI_SOUND_ENV_SUSTAIN = 1,
46 AGI_SOUND_ENV_RELEASE = 0
73 void play(
int resnum)
override;
77 int readBuffer(int16 *buffer,
const int numSamples)
override;
97 const int16 *_waveform;
107 void fillAudio(int16 *stream, uint len);
109 void stopNote(
int i);
110 void playNote(
int i,
int freq,
int vol);
Definition: sound_sarien.h:53
Definition: sound_sarien.h:68
int getRate() const override
Definition: sound_sarien.h:87
Definition: audiostream.h:50
AgiSoundEmuType
Definition: sound.h:47
bool endOfData() const override
Definition: sound_sarien.h:83
bool isStereo() const override
Definition: sound_sarien.h:79