Skip to content

Commit

Permalink
snd_pcm_plugin_flush was removed in QNX 7.1 and later
Browse files Browse the repository at this point in the history
Co-authored-by: elahav <elahav@users.noreply.github.com>
  • Loading branch information
madebr and elahav committed Sep 30, 2023
1 parent 933ec9e commit 71b7790
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/audio/qsa/SDL_qsa_audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ static Uint8 *QSA_GetDeviceBuf(_THIS)
static void QSA_CloseDevice(_THIS)
{
if (this->hidden->audio_handle != NULL) {
#if _NTO_VERSION < 710
if (!this->iscapture) {
/* Finish playing available samples */
snd_pcm_plugin_flush(this->hidden->audio_handle,
Expand All @@ -242,6 +243,7 @@ static void QSA_CloseDevice(_THIS)
snd_pcm_plugin_flush(this->hidden->audio_handle,
SND_PCM_CHANNEL_CAPTURE);
}
#endif
snd_pcm_close(this->hidden->audio_handle);
}

Expand Down

0 comments on commit 71b7790

Please sign in to comment.