found the snd_pcm_playback_pause function for 0.5

This commit is contained in:
Bill Currie 2001-07-05 20:24:41 +00:00
parent fc09d2b00f
commit 016563e77f

View file

@ -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);
}