Mercurial > audlegacy
comparison src/audacious/output.c @ 3709:a89a12aa4f2c
Add InputPlayback::pass_audio() which replaces produce_audio().
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Mon, 08 Oct 2007 01:43:58 -0500 |
parents | 6f4068a0f291 |
children | bce5ac1f368b |
comparison
equal
deleted
inserted
replaced
3708:6f4068a0f291 | 3709:a89a12aa4f2c |
---|---|
410 return op->buffer_playing(); | 410 return op->buffer_playing(); |
411 } | 411 } |
412 | 412 |
413 /* called by input plugin when data is ready */ | 413 /* called by input plugin when data is ready */ |
414 void | 414 void |
415 produce_audio(gint unused, /* will become InputPlayback soon */ | 415 output_pass_audio(InputPlayback *playback, |
416 AFormat fmt, /* output format */ | 416 AFormat fmt, /* output format */ |
417 gint nch, /* channels */ | 417 gint nch, /* channels */ |
418 gint length, /* length of sample */ | 418 gint length, /* length of sample */ |
419 gpointer ptr, /* data */ | 419 gpointer ptr, /* data */ |
420 int *going /* 0 when time to stop */ | 420 int *going /* 0 when time to stop */ |
421 ) | 421 ) |
422 { | 422 { |
423 static Flow *postproc_flow = NULL; | 423 static Flow *postproc_flow = NULL; |
424 InputPlayback *playback = get_current_input_playback(); | |
425 OutputPlugin *op = playback->output; | 424 OutputPlugin *op = playback->output; |
426 gint writeoffs; | 425 gint writeoffs; |
427 gint time = playback->output->written_time(); | 426 gint time = playback->output->written_time(); |
428 | 427 |
429 if (postproc_flow == NULL) | 428 if (postproc_flow == NULL) |