1.1 --- a/src/drivers/audio_sdl.c Sat Jun 13 00:50:48 2009 +0000
1.2 +++ b/src/drivers/audio_sdl.c Sun Jun 28 01:34:55 2009 +0000
1.8 * The SDL sound driver
1.10 * Copyright (c) 2009 wahrhaft
1.13 int rate = DEFAULT_SAMPLE_RATE;
1.14 int format = DEFAULT_SAMPLE_FORMAT;
1.19 - if (format & AUDIO_FMT_16BIT)
1.20 + if (format & AUDIO_FMT_16BIT)
1.21 fmt.format = AUDIO_S16;
1.23 fmt.format = AUDIO_U8;
1.30 fmt.samples = SDL_SAMPLES;
1.31 fmt.callback = mix_audio;
1.32 fmt.userdata = NULL;
1.35 if (SDL_OpenAudio(&fmt, NULL) < 0)
1.37 ERROR("Unable to open audio output (SDL)");
1.39 ERROR("Could not allocate audio buffer (SDL)");
1.49 if (buffer_pos + buffer->length >= BUFFER_MAX_SIZE)
1.51 - printf("Audio buffer full, dropping a chunk\n");
1.52 + DEBUG("Audio buffer full, dropping a chunk\n");
1.64 static void mix_audio(void *userdata, Uint8 *stream, int len)
1.69 - //printf("Audio buffer low, repeating a chunk\n");
1.70 + DEBUG("Audio buffer low, repeating a chunk\n");
1.78 -static struct audio_driver audio_sdl_driver = {
1.79 +static struct audio_driver audio_sdl_driver = {
1.81 N_("SDL sound driver"),