Fix ALSA player. Works On My Computer [tm].
Originally committed to SVN as r3990.
This commit is contained in:
parent
361f5228ba
commit
8c8f59b5ff
1 changed files with 3 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue