Fix ALSA player. Works On My Computer [tm].

Originally committed to SVN as r3990.
This commit is contained in:
Grigori Goronzy 2010-01-15 22:58:51 +00:00
parent 361f5228ba
commit 8c8f59b5ff

View file

@ -230,6 +230,9 @@ void AlsaPlayer::SetUpAsync()
// And free struct again
snd_pcm_sw_params_free(sw_params);
// Prepare for playback
snd_pcm_prepare(pcm_handle);
// Attach async handler
if (snd_async_add_pcm_handler(&pcm_callback, pcm_handle, async_write_handler, this) < 0) {
throw _T("ALSA player: Failed attaching async handler");