12 #ifndef SOUND_ROUTINES 13 #define SOUND_ROUTINES 14 #define DEBUG_ENABLE_AUDIO 40 ULONG oneShotHiSamples;
41 ULONG repeatHiSamples;
42 ULONG samplesPerHiCycle;
50 ULONG GetSize(STRPTR filename);
51 ULONG SizeIFF(STRPTR filename);
52 UWORD ReadIFF(STRPTR filename, SoundInfo *info);
53 BOOL MoveTo(STRPTR check_string, FILE *file_ptr);
55 extern SoundInfo *PrepareSound(STRPTR file);
56 extern BOOL PlaySound(SoundInfo *info,
UWORD volume,
UBYTE channel, WORD delta_rate,
UWORD repeat);
57 extern void StopSound(
UBYTE channel);
58 extern void RemoveSound(SoundInfo *info);
59 extern void RemoveSoundStruct(SoundInfo *info);
60 extern UWORD LoadSound(STRPTR filename, SoundInfo *info);
61 extern SoundInfo *LoadPackedSound(
char *filename,
BYTE *packed_block,
BYTE *unpacked_block);
63 BYTE *adpcm_decode(
UBYTE *input,
int numSamples,
BYTE *output);