mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
found the snd_pcm_playback_pause function for 0.5
This commit is contained in:
parent
fc09d2b00f
commit
016563e77f
1 changed files with 2 additions and 15 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue