found the snd_pcm_playback_pause function for 0.5
This commit is contained in:
parent
fc09d2b00f
commit
016563e77f
|
@ -415,24 +415,11 @@ PluginInfo (void) {
|
||||||
void
|
void
|
||||||
SNDDMA_BlockSound (void)
|
SNDDMA_BlockSound (void)
|
||||||
{
|
{
|
||||||
if (mmap_control->status.status == SND_PCM_STATUS_RUNNING) {
|
snd_pcm_playback_pause (pcm_handle, 1);
|
||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
SNDDMA_UnblockSound (void)
|
SNDDMA_UnblockSound (void)
|
||||||
{
|
{
|
||||||
|
snd_pcm_playback_pause (pcm_handle, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue