Added SDL_AUDIO_FRAMESIZE

This commit is contained in:
Brick authored and Sam Lantinga committed 2023-09-05 17:56:58 -07:00
1 parent 53122593f8
commit f2ca9a615b
11 files changed
+29 -33

No files matched your search

+3
View File
@@ -152,6 +152,9 @@ typedef struct SDL_AudioSpec
int freq; /**< sample rate: sample frames per second */
} SDL_AudioSpec;
/* Calculate the size of each audio frame (in bytes) */
#define SDL_AUDIO_FRAMESIZE(x) (SDL_AUDIO_BYTESIZE((x).format) * (x).channels)
/* SDL_AudioStream is an audio conversion interface.
- It can handle resampling data in chunks without generating
artifacts, when it doesn't have the complete buffer available.