src/audio/SDL_audio.c
changeset 7038 7f22b9ba218f
parent 7011 82bbfbbc720e
child 7342 4828e86c6010
     1.1 --- a/src/audio/SDL_audio.c	Sun Mar 31 12:48:50 2013 -0400
     1.2 +++ b/src/audio/SDL_audio.c	Sun Mar 31 13:05:40 2013 -0400
     1.3 @@ -191,7 +191,7 @@
     1.4  static int
     1.5  SDL_AudioOpenDevice_Default(_THIS, const char *devname, int iscapture)
     1.6  {
     1.7 -    return 0;
     1.8 +    return -1;
     1.9  }
    1.10  
    1.11  static void
    1.12 @@ -940,7 +940,7 @@
    1.13           ((!iscapture) && (current_audio.outputDevices == NULL)) )
    1.14          SDL_GetNumAudioDevices(iscapture);
    1.15  
    1.16 -    if (!current_audio.impl.OpenDevice(device, devname, iscapture)) {
    1.17 +    if (current_audio.impl.OpenDevice(device, devname, iscapture) < 0) {
    1.18          close_audio_device(device);
    1.19          return 0;
    1.20      }