mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-09 22:05:29 +00:00
snd_pcm_plugin_flush was removed in QNX 7.1 and later
Co-authored-by: elahav <elahav@users.noreply.github.com>
This commit is contained in:
parent
933ec9e978
commit
71b7790be8
|
@ -233,6 +233,7 @@ static Uint8 *QSA_GetDeviceBuf(_THIS)
|
||||||
static void QSA_CloseDevice(_THIS)
|
static void QSA_CloseDevice(_THIS)
|
||||||
{
|
{
|
||||||
if (this->hidden->audio_handle != NULL) {
|
if (this->hidden->audio_handle != NULL) {
|
||||||
|
#if _NTO_VERSION < 710
|
||||||
if (!this->iscapture) {
|
if (!this->iscapture) {
|
||||||
/* Finish playing available samples */
|
/* Finish playing available samples */
|
||||||
snd_pcm_plugin_flush(this->hidden->audio_handle,
|
snd_pcm_plugin_flush(this->hidden->audio_handle,
|
||||||
|
@ -242,6 +243,7 @@ static void QSA_CloseDevice(_THIS)
|
||||||
snd_pcm_plugin_flush(this->hidden->audio_handle,
|
snd_pcm_plugin_flush(this->hidden->audio_handle,
|
||||||
SND_PCM_CHANNEL_CAPTURE);
|
SND_PCM_CHANNEL_CAPTURE);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
snd_pcm_close(this->hidden->audio_handle);
|
snd_pcm_close(this->hidden->audio_handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue