Browse Source

Fixed warning C4244: 'initializing': conversion from 'int' to 'SDL_AudioFormat', possible loss of data

Sam Lantinga 1 year ago
parent
commit
bcd2807065
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/audio/SDL_audioqueue.c

+ 1 - 1
src/audio/SDL_audioqueue.c

@@ -525,7 +525,7 @@ const Uint8 *SDL_ReadFromAudioQueue(SDL_AudioQueue *queue,
     }
 
     SDL_AudioFormat src_format = track->spec.format;
-    SDL_AudioFormat src_channels = track->spec.channels;
+    int src_channels = track->spec.channels;
 
     size_t src_frame_size = SDL_AUDIO_BYTESIZE(src_format) * src_channels;
     size_t dst_frame_size = SDL_AUDIO_BYTESIZE(dst_format) * dst_channels;