Quellcode durchsuchen

include: Correct comment about audio device hotplug events.

Ryan C. Gordon vor 3 Jahren
Ursprung
Commit
660054f3dc
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      include/SDL3/SDL_events.h

+ 1 - 1
include/SDL3/SDL_events.h

@@ -493,7 +493,7 @@ typedef struct SDL_AudioDeviceEvent
 {
 {
     Uint32 type;        /**< ::SDL_EVENT_AUDIO_DEVICE_ADDED, or ::SDL_EVENT_AUDIO_DEVICE_REMOVED */
     Uint32 type;        /**< ::SDL_EVENT_AUDIO_DEVICE_ADDED, or ::SDL_EVENT_AUDIO_DEVICE_REMOVED */
     Uint64 timestamp;   /**< In nanoseconds, populated using SDL_GetTicksNS() */
     Uint64 timestamp;   /**< In nanoseconds, populated using SDL_GetTicksNS() */
-    SDL_AudioDeviceID which;       /**< The audio device index for the ADDED event (valid until next SDL_GetNumAudioDevices() call), SDL_AudioDeviceID for the REMOVED event */
+    SDL_AudioDeviceID which;       /**< SDL_AudioDeviceID for the device being added or removed */
     Uint8 iscapture;    /**< zero if an output device, non-zero if a capture device. */
     Uint8 iscapture;    /**< zero if an output device, non-zero if a capture device. */
     Uint8 padding1;
     Uint8 padding1;
     Uint8 padding2;
     Uint8 padding2;