diff --git a/libs/audio/targets/snd_alsa_0_5.c b/libs/audio/targets/snd_alsa_0_5.c index c9516bfc5..25dff80e6 100644 --- a/libs/audio/targets/snd_alsa_0_5.c +++ b/libs/audio/targets/snd_alsa_0_5.c @@ -415,24 +415,11 @@ PluginInfo (void) { void SNDDMA_BlockSound (void) { - if (mmap_control->status.status == SND_PCM_STATUS_RUNNING) { - if ((rc = snd_pcm_channel_stop (pcm_handle, SND_PCM_CHANNEL_PLAYBACK)) - < 0) { - fprintf (stderr, "unable to stop playback. %s\n", - snd_strerror (rc)); - exit (1); - } - if ((rc = snd_pcm_plugin_prepare (pcm_handle, - SND_PCM_CHANNEL_PLAYBACK)) < 0) { - fprintf (stderr, - "underrun: playback channel prepare error. %s\n", - snd_strerror (rc)); - exit (1); - } - } + snd_pcm_playback_pause (pcm_handle, 1); } void SNDDMA_UnblockSound (void) { + snd_pcm_playback_pause (pcm_handle, 0); }