X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fsound.h;h=bc6b883e7e8dede4de70fdc9852aa752cab29fe1;hp=be853f8c2723e356a8b56ab39235d97206b01c3e;hb=c27d6982a3c8e3ce85d4c974af6465f5cf1855b0;hpb=d0893e6987c21c25ec137438a18cfe1288362139 diff --git a/src/sound.h b/src/sound.h index be853f8c..bc6b883e 100644 --- a/src/sound.h +++ b/src/sound.h @@ -26,7 +26,7 @@ #define VOXWARE #endif /* where is the right declaration for 'ioctl'? */ -extern void ioctl(long, long, void *); +extern void ioctl(int, int, void *); #endif #define SND_BLOCKSIZE 4096 @@ -89,48 +89,8 @@ extern void ioctl(long, long, void *); #define SOUND_STATUS SOUND_AVAILABLE #endif -struct SoundHeader_SUN -{ - unsigned long magic; - unsigned long hdr_size; - unsigned long data_size; - unsigned long encoding; - unsigned long sample_rate; - unsigned long channels; -}; - -struct SoundHeader_8SVX -{ - char magic_FORM[4]; - unsigned long chunk_size; - char magic_8SVX[4]; -}; - -struct SoundInfo -{ - char *name; - char *file_ptr, *data_ptr; - long file_len, data_len; -}; - -struct SoundControl -{ - int nr; - int volume; - int stereo; - BOOL active; - BOOL loop; - BOOL fade_sound; - BOOL stop_sound; - BOOL stop_all_sounds; - int playingtime; - long playingpos; - long data_len; - char *data_ptr; -}; - /* function from "misc.c" */ -unsigned long be2long(unsigned long *); +unsigned int be2int(unsigned int *); /* sound server functions */ void SoundServer(void);