32 #define SOUND_EMU_NONE 0 33 #define SOUND_EMU_PC 1 34 #define SOUND_EMU_PCJR 2 35 #define SOUND_EMU_MAC 3 36 #define SOUND_EMU_AMIGA 4 37 #define SOUND_EMU_APPLE2 5 38 #define SOUND_EMU_APPLE2GS 6 39 #define SOUND_EMU_COCO3 7 40 #define SOUND_EMU_MIDI 8 48 AGI_SOUND_SAMPLE = 0x0001,
49 AGI_SOUND_MIDI = 0x0002,
50 AGI_SOUND_4CHN = 0x0008,
51 AGI_SOUND_APPLE2 = 0xffff,
52 AGI_SOUND_COCO3 = 0xfffe
62 virtual void play(
int resnum) = 0;
63 virtual void stop() = 0;
78 AgiSound(byte resourceNr, byte *data, uint32 length, uint16 type) :
79 _resourceNr(resourceNr),
87 virtual void play() { _isPlaying =
true; }
88 virtual void stop() { _isPlaying =
false; }
89 virtual bool isPlaying() {
return _isPlaying; }
90 byte *getData() {
return _data; }
91 uint32 getLength() {
return _length; }
92 virtual uint16 type() {
return _type; }
93 virtual bool isValid() {
return true; }
99 static AgiSound *createFromRawResource(uint8 *data, uint32 len,
int resnum,
int soundemu,
bool isAgiV1);
111 PCjrSound(byte resourceNr, byte *data, uint32 length, uint16 type);
112 const uint8 *getVoicePointer(uint voiceNum);
121 void unloadSound(
int);
122 void startSound(
int,
int);
125 void soundIsFinished();
126 bool isPlaying()
const {
return _playingSound != -1; }
AgiSoundEmuType
Definition: sound.h:47