Bläddra i källkod

n3dsaudio: Patched to compile.

Ryan C. Gordon 2 år sedan
förälder
incheckning
b385dc3b68
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/audio/n3ds/SDL_n3dsaudio.c

+ 1 - 1
src/audio/n3ds/SDL_n3dsaudio.c

@@ -185,7 +185,7 @@ static int N3DSAUDIO_PlayDevice(SDL_AudioDevice *device, const Uint8 *buffer, in
     if (device->hidden->isCancelled ||
     if (device->hidden->isCancelled ||
         device->hidden->waveBuf[nextbuf].status != NDSP_WBUF_FREE) {
         device->hidden->waveBuf[nextbuf].status != NDSP_WBUF_FREE) {
         contextUnlock(device);
         contextUnlock(device);
-        return;
+        return 0;  // !!! FIXME: is this a fatal error? If so, this should return -1.
     }
     }
 
 
     device->hidden->nextbuf = (nextbuf + 1) % NUM_BUFFERS;
     device->hidden->nextbuf = (nextbuf + 1) % NUM_BUFFERS;