Fixed warning C4244: 'initializing': conversion from 'int' to 'SDL_AudioFormat', possible loss of data
This commit is contained in:
1 parent
42579e2af1
commit
bcd2807065
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user