فهرست منبع

Fixed the recording field in audio device events

Fixes https://github.com/libsdl-org/SDL/issues/10885
Sam Lantinga 7 ماه پیش
والد
کامیت
03ae792df3
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/audio/SDL_audio.c

+ 1 - 1
src/audio/SDL_audio.c

@@ -2474,7 +2474,7 @@ void SDL_UpdateAudio(void)
             SDL_zero(event);
             event.type = i->type;
             event.adevice.which = (Uint32) i->devid;
-            event.adevice.recording = ((i->devid & (1<<0)) != 0);  // bit #0 of devid is set for playback devices and unset for recording.
+            event.adevice.recording = ((i->devid & (1<<0)) == 0);  // bit #0 of devid is set for playback devices and unset for recording.
             SDL_PushEvent(&event);
         }
         SDL_free(i);