output: pass audio_format to plugin.init() and plugin.open()

Pass the globally configured audio_format as a const pointer to
plugin.init().  plugin.open() gets a writable pointer which contains
the audio_format requested by the plugin.  Its initial value is either
the configured audio_format or the input file's audio_format.
This commit is contained in:
Max Kellermann
2008-09-24 07:20:36 +02:00
parent d32f49a90b
commit 3cae6856b8
13 changed files with 61 additions and 34 deletions

View File

@@ -75,7 +75,7 @@ static void *audio_output_task(void *arg)
case AO_COMMAND_OPEN:
assert(!ao->open);
ao->plugin->open(ao);
ao->plugin->open(ao, &ao->outAudioFormat);
ao_command_finished(ao);
break;