comparison libao2/ao_win32.c @ 18915:99e20a22d5d0

modifies function declarations without parameters from () to the correct (void). Only files in libao2 are affected. patch by Stefan Huehner stefan AT huehner-org>
author reynaldo
date Thu, 06 Jul 2006 04:30:19 +0000
parents cc9c088305d9
children 36589811e5d0
comparison
equal deleted inserted replaced
18914:d450ec82ae57 18915:99e20a22d5d0
252 free(waveBlocks); 252 free(waveBlocks);
253 mp_msg(MSGT_AO, MSGL_V,"buffer memory freed\n"); 253 mp_msg(MSGT_AO, MSGL_V,"buffer memory freed\n");
254 } 254 }
255 255
256 // stop playing and empty buffers (for seeking/pause) 256 // stop playing and empty buffers (for seeking/pause)
257 static void reset() 257 static void reset(void)
258 { 258 {
259 waveOutReset(hWaveOut); 259 waveOutReset(hWaveOut);
260 buf_write=0; 260 buf_write=0;
261 buf_write_pos=0; 261 buf_write_pos=0;
262 full_buffers=0; 262 full_buffers=0;
263 buffered_bytes=0; 263 buffered_bytes=0;
264 } 264 }
265 265
266 // stop playing, keep buffers (for pause) 266 // stop playing, keep buffers (for pause)
267 static void audio_pause() 267 static void audio_pause(void)
268 { 268 {
269 waveOutPause(hWaveOut); 269 waveOutPause(hWaveOut);
270 } 270 }
271 271
272 // resume playing, after audio_pause() 272 // resume playing, after audio_pause()
273 static void audio_resume() 273 static void audio_resume(void)
274 { 274 {
275 waveOutRestart(hWaveOut); 275 waveOutRestart(hWaveOut);
276 } 276 }
277 277
278 // return: how many bytes can be played without blocking 278 // return: how many bytes can be played without blocking
279 static int get_space() 279 static int get_space(void)
280 { 280 {
281 return BUFFER_COUNT*BUFFER_SIZE - buffered_bytes; 281 return BUFFER_COUNT*BUFFER_SIZE - buffered_bytes;
282 } 282 }
283 283
284 //writes data into buffer, based on ringbuffer code in ao_sdl.c 284 //writes data into buffer, based on ringbuffer code in ao_sdl.c
320 len = (len/ao_data.outburst)*ao_data.outburst; 320 len = (len/ao_data.outburst)*ao_data.outburst;
321 return write_waveOutBuffer(data,len); 321 return write_waveOutBuffer(data,len);
322 } 322 }
323 323
324 // return: delay in seconds between first and last sample in buffer 324 // return: delay in seconds between first and last sample in buffer
325 static float get_delay() 325 static float get_delay(void)
326 { 326 {
327 return (float)(buffered_bytes + ao_data.buffersize)/(float)ao_data.bps; 327 return (float)(buffered_bytes + ao_data.buffersize)/(float)ao_data.bps;
328 } 328 }