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
34#define ENV_SUSTAIN 100
35#define ENV_RELEASE 7500
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;
99 const int16 *_waveform;
109 void fillAudio(int16 *stream, uint len);
111 void stopNote(
int i);
112 void playNote(
int i,
int freq,
int vol);
Definition: sound_sarien.h:68
int getRate() const override
Definition: sound_sarien.h:87
bool isStereo() const override
Definition: sound_sarien.h:79
int readBuffer(int16 *buffer, const int numSamples) override
bool endOfData() const override
Definition: sound_sarien.h:83
Definition: audiostream.h:50
AgiSoundEmuType
Definition: sound.h:47
Definition: sound_sarien.h:53