X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fsound.c;h=c9e13525dc94a1aa061f86c20a31c1805d387c54;hb=6b83db8bee17d70c4e89dc3e3b703b7032aa5f27;hp=340ec942b8ebc30d25e62107bdf02a28e30498c5;hpb=50c422d96b6da2c0412b6bd3763e9d1a029a6014;p=rocksndiamonds.git diff --git a/src/sound.c b/src/sound.c index 340ec942..c9e13525 100644 --- a/src/sound.c +++ b/src/sound.c @@ -39,9 +39,11 @@ static unsigned char playing_buffer[SND_BLOCKSIZE]; static void SoundServer_InsertNewSound(struct SoundControl); #endif #ifndef VOXWARE +#ifndef MSDOS static unsigned char linear_to_ulaw(int); static int ulaw_to_linear(unsigned char); #endif +#endif #ifdef HPUX_AUDIO static void HPUX_Audio_Control(); #endif @@ -498,6 +500,7 @@ void SoundServer_FadeSound(int nr) } */ +#ifdef MSDOS static void SoundServer_StopSound(int nr) { int i; @@ -540,6 +543,7 @@ static void SoundServer_StopAllSounds() close(sound_device); #endif } +#endif /* MSDOS */ #ifdef HPUX_AUDIO static void HPUX_Audio_Control() @@ -564,6 +568,8 @@ static void HPUX_Audio_Control() } #endif /* HPUX_AUDIO */ +#ifndef VOXWARE +#ifndef MSDOS /* these two are stolen from "sox"... :) */ /* @@ -667,6 +673,8 @@ static int ulaw_to_linear(unsigned char ulawbyte) return(sample); } +#endif /* !MSDOS */ +#endif /* !VOXWARE */ /*** THE STUFF ABOVE IS ONLY USED BY THE SOUND SERVER CHILD PROCESS ***/