X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fsound.h;h=2e934709e2ee041ebb0be6cc40c9aada059d4b84;hp=2c747bd859788cd3d16f13ac5d3b759e5a1dc3e8;hb=8d46c5298f0fcce7bdb52f3835b2fbbdc403dfe0;hpb=0918c3eb2f6219a8cc72aa85bd9c4889788dd474 diff --git a/src/sound.h b/src/sound.h index 2c747bd8..2e934709 100644 --- a/src/sound.h +++ b/src/sound.h @@ -22,8 +22,14 @@ #ifndef VOXWARE #define VOXWARE #endif + +#if 0 /* where is the right declaration for 'ioctl'? */ extern void ioctl(long, long, void *); +#else +#include +#endif + #endif #ifdef __FreeBSD__ @@ -119,22 +125,11 @@ struct SoundHeader_8SVX 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 @@ -159,16 +154,10 @@ struct SoundControl #endif }; -/* sound server functions */ +/* start sound server */ void SoundServer(void); -void SoundServer_InsertNewSound(struct SoundControl); -void SoundServer_StopSound(int); -void SoundServer_StopAllSounds(void); -void HPUX_Audio_Control(void); -unsigned char linear_to_ulaw(int); -int ulaw_to_linear(unsigned char); - -/* application functions */ + +/* client functions */ boolean LoadSound(struct SoundInfo *); void PlaySound(int); void PlaySoundStereo(int, int);