diff options
Diffstat (limited to 'audio/audio.c')
-rw-r--r-- | audio/audio.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/audio/audio.c b/audio/audio.c deleted file mode 100644 index 05a59eef..00000000 --- a/audio/audio.c +++ /dev/null @@ -1,34 +0,0 @@ -#include "main.h" - -QUEUE_ENTRY voices[MAX_VOICES]; - -int init(void) { - SDL_AudioSpec format; - - sample_id=0; - - //initialize SDL for Audio and Events - if (SDL_Init(SDL_INIT_AUDIO) < 0 ) { - fprintf(stderr, "Unable to init SDL: %s\n", SDL_GetError()); - return -1; - } - atexit(SDL_Quit); - - - //set up the audio format - format.freq=44100; - format.format=AUDIO_S16; - format.channels=2; - format.samples=512; - format.callback=stream_audio; - format.userdata = NULL; - - //open the audio device - if(SDL_OpenAudio(&format,NULL)<0) { - fprintf(stderr,"Unable to open audio: %s\n",SDL_GetError()); - return -1; - } - - return 0; - -} |