player_thread: move cross-fading to output thread

Remove cross_fade_apply(), and call pcm_mix() in the output thread,
mixing the chunk and chunk->other together.
This commit is contained in:
Max Kellermann
2010-05-02 15:31:31 +02:00
parent d093fb2441
commit 5399a72ec1
8 changed files with 50 additions and 65 deletions

View File

@@ -191,6 +191,8 @@ audio_output_init(struct audio_output *ao, const struct config_param *param,
ao->pause = false;
ao->fail_timer = NULL;
pcm_buffer_init(&ao->cross_fade_buffer);
/* set up the filter chain */
ao->filter = filter_chain_new();