qnx: Removed unnecessary check for available audio devices.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sun, 28 May 2017 21:50:37 +0200
changeset 110473abb7c6f2e74
parent 11046 8dc8b2ed306e
child 11048 0ebcca15e978
qnx: Removed unnecessary check for available audio devices.
src/audio/qsa/SDL_qsa_audio.c
     1.1 --- a/src/audio/qsa/SDL_qsa_audio.c	Sun May 28 21:50:27 2017 +0200
     1.2 +++ b/src/audio/qsa/SDL_qsa_audio.c	Sun May 28 21:50:37 2017 +0200
     1.3 @@ -722,7 +722,6 @@
     1.4  QSA_Init(SDL_AudioDriverImpl * impl)
     1.5  {
     1.6      snd_pcm_t *handle = NULL;
     1.7 -    int32_t status = 0;
     1.8  
     1.9      /* Clear devices array */
    1.10      SDL_zero(qsa_playback_device);
    1.11 @@ -751,13 +750,6 @@
    1.12      impl->OnlyHasDefaultOutputDevice = 0;
    1.13      impl->OnlyHasDefaultCaptureDevice = 0;
    1.14  
    1.15 -    /* Check if io-audio manager is running or not */
    1.16 -    status = snd_cards();
    1.17 -    if (status == 0) {
    1.18 -        /* if no, return immediately */
    1.19 -        return 1;
    1.20 -    }
    1.21 -
    1.22      return 1;   /* this audio target is available. */
    1.23  }
    1.24