[Commits] SDL: qnx: Removed unnecessary check for available audio devices.

libsdl.org revision control commits-owner at libsdl.org
Sun May 28 13:00:29 PDT 2017


details:   https://hg.libsdl.org/SDL/rev/3abb7c6f2e74
changeset: 11047:3abb7c6f2e74
user:      Philipp Wiesemann <philipp.wiesemann at arcor.de>
date:      Sun May 28 21:50:37 2017 +0200
description:
qnx: Removed unnecessary check for available audio devices.

diffstat:

 src/audio/qsa/SDL_qsa_audio.c |  8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diffs (25 lines):

diff -r 8dc8b2ed306e -r 3abb7c6f2e74 src/audio/qsa/SDL_qsa_audio.c
--- a/src/audio/qsa/SDL_qsa_audio.c	Sun May 28 21:50:27 2017 +0200
+++ b/src/audio/qsa/SDL_qsa_audio.c	Sun May 28 21:50:37 2017 +0200
@@ -722,7 +722,6 @@
 QSA_Init(SDL_AudioDriverImpl * impl)
 {
     snd_pcm_t *handle = NULL;
-    int32_t status = 0;
 
     /* Clear devices array */
     SDL_zero(qsa_playback_device);
@@ -751,13 +750,6 @@
     impl->OnlyHasDefaultOutputDevice = 0;
     impl->OnlyHasDefaultCaptureDevice = 0;
 
-    /* Check if io-audio manager is running or not */
-    status = snd_cards();
-    if (status == 0) {
-        /* if no, return immediately */
-        return 1;
-    }
-
     return 1;   /* this audio target is available. */
 }
 


More information about the commits mailing list