SDL: snd_pcm_plugin_flush was removed in QNX 7.1 and later

From 71b7790be84f68b63dd15ac40905b9d9cd8e592d Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Sat, 30 Sep 2023 16:33:56 +0200
Subject: [PATCH] snd_pcm_plugin_flush was removed in QNX 7.1 and later

Co-authored-by: elahav <elahav@users.noreply.github.com>
---
 src/audio/qsa/SDL_qsa_audio.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/audio/qsa/SDL_qsa_audio.c b/src/audio/qsa/SDL_qsa_audio.c
index 0ab477485be0..1a80f94f047c 100644
--- a/src/audio/qsa/SDL_qsa_audio.c
+++ b/src/audio/qsa/SDL_qsa_audio.c
@@ -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,
@@ -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);
     }