Mercurial > sdl-ios-xcode
comparison src/audio/SDL_audio.c @ 4507:dbf3fa541096
Fixed compile warnings
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 12 Jul 2010 00:35:24 -0700 |
parents | 791b3256fb22 |
children | b135d19f9764 |
comparison
equal
deleted
inserted
replaced
4506:b577f47379f3 | 4507:dbf3fa541096 |
---|---|
285 { | 285 { |
286 return (stream->write_pos - stream->read_pos) % stream->max_len; | 286 return (stream->write_pos - stream->read_pos) % stream->max_len; |
287 } | 287 } |
288 | 288 |
289 /* Initialize the stream by allocating the buffer and setting the read/write heads to the beginning */ | 289 /* Initialize the stream by allocating the buffer and setting the read/write heads to the beginning */ |
290 #if 0 | |
290 static int | 291 static int |
291 SDL_StreamInit(SDL_AudioStreamer * stream, int max_len, Uint8 silence) | 292 SDL_StreamInit(SDL_AudioStreamer * stream, int max_len, Uint8 silence) |
292 { | 293 { |
293 /* First try to allocate the buffer */ | 294 /* First try to allocate the buffer */ |
294 stream->buffer = (Uint8 *) SDL_malloc(max_len); | 295 stream->buffer = (Uint8 *) SDL_malloc(max_len); |
303 /* Zero out the buffer */ | 304 /* Zero out the buffer */ |
304 SDL_memset(stream->buffer, silence, max_len); | 305 SDL_memset(stream->buffer, silence, max_len); |
305 | 306 |
306 return 0; | 307 return 0; |
307 } | 308 } |
309 #endif | |
308 | 310 |
309 /* Deinitialize the stream simply by freeing the buffer */ | 311 /* Deinitialize the stream simply by freeing the buffer */ |
310 static void | 312 static void |
311 SDL_StreamDeinit(SDL_AudioStreamer * stream) | 313 SDL_StreamDeinit(SDL_AudioStreamer * stream) |
312 { | 314 { |