char magic_8SVX[4];
};
-struct SoundHeader_WAV
-{
- char magic_RIFF[4];
- unsigned long header_size;
- char magic_WAVE[4];
- char some_stuff[24];
- char magic_DATA[4];
- unsigned long data_size;
-};
-
struct SoundInfo
{
char *name;
- byte *file_ptr;
byte *data_ptr;
- long file_len, data_len;
+ long data_len;
+
#ifdef MSDOS
SAMPLE *sample_ptr;
#endif
+
+#ifdef TARGET_SDL
+ Mix_Chunk *mix_chunk;
+#endif
};
struct SoundControl
#endif
};
-/* start sound server */
+/* general sound functions */
+int OpenAudio(char *);
+int CheckAudio(char *);
+boolean UnixInitAudio(void);
+
+/* sound server functions */
void SoundServer(void);
-/* client functions */
+/* sound client functions */
boolean LoadSound(struct SoundInfo *);
void PlaySound(int);
void PlaySoundStereo(int, int);