~ubuntu-dev/mplayer/ubuntu-feisty

« back to all changes in this revision

Viewing changes to libao2/ao_alsa5.c

  • Committer: William Grant
  • Date: 2007-02-03 03:16:07 UTC
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: william.grant@ubuntu.org.au-20070203031607-08gc2ompbz6spt9i
Update to 1.0rc1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
260
260
}
261
261
 
262
262
/* stop playing and empty buffers (for seeking/pause) */
263
 
static void reset()
 
263
static void reset(void)
264
264
{
265
265
    int err;
266
266
 
284
284
}
285
285
 
286
286
/* stop playing, keep buffers (for pause) */
287
 
static void audio_pause()
 
287
static void audio_pause(void)
288
288
{
289
289
    int err;
290
290
 
302
302
}
303
303
 
304
304
/* resume playing, after audio_pause() */
305
 
static void audio_resume()
 
305
static void audio_resume(void)
306
306
{
307
307
    int err;
308
308
    if ((err = snd_pcm_channel_prepare(alsa_handler, SND_PCM_CHANNEL_PLAYBACK)) < 0)
348
348
}
349
349
 
350
350
/* how many byes are free in the buffer */
351
 
static int get_space()
 
351
static int get_space(void)
352
352
{
353
353
    snd_pcm_channel_status_t ch_stat;
354
354
    
361
361
}
362
362
 
363
363
/* delay in seconds between first and last sample in buffer */
364
 
static float get_delay()
 
364
static float get_delay(void)
365
365
{
366
366
    snd_pcm_channel_status_t ch_stat;
367
367