Sylvain
d8600f717e
Pointer as bool (libsdl-org#7214)
2023-11-09 14:18:36 -08:00
Sam Lantinga
f3261fedcc
Code cleanup now that SDL_bool is equivalent to a C boolean expression
2023-11-03 09:54:04 -07:00
Anonymous Maarten
2a01f9dcb5
tests: plug leaks when running with --trackmem
...
(using SDL_VIDEO_DRIVER=x11/wayland on Linux)
2023-09-19 17:58:25 +02:00
Brick
a62e62f97a
Refactored SDL_audiocvt.c
2023-09-17 13:13:23 -07:00
Ryan C. Gordon
8b26e95f91
audio: Change SDL_AudioStreamCallback
...
Now it offers the total requested bytes in addition to the amount
immediately needed (and immediately needed might be zero if the stream
already has enough queued to satisfy the request.
2023-09-13 10:11:23 -04:00
Sam Lantinga
cd633b9a88
Renamed SDL_IsAudioDevicePaused() to SDL_AudioDevicePaused()
...
This aligns with the SDL3 convention of removing "Is" from self-explanatory function names
Also improved some documentation in SDL_audio.h
2023-09-12 12:11:09 -07:00
Brick
f2ca9a615b
Added SDL_AUDIO_FRAMESIZE
2023-09-05 17:56:58 -07:00
Brick
53122593f8
Added SDL_AUDIO_BYTESIZE
2023-09-05 17:56:58 -07:00
Sam Lantinga
233789b0d1
Audio types have the same naming convention as other SDL endian types, e.g. [S|U][BITS][LE|BE]
...
Native endian types have no LE/BE suffix
2023-09-04 09:48:44 -07:00
Brick
0e552761b7
Renamed AudioStreamSpeed to AudioStreamFrequencyRatio
2023-09-04 07:46:18 -07:00
Brick
5394a805f4
Improved testaudiostreamdynamicresample
...
Tweaked color palette
2023-09-01 14:38:45 -04:00
Brick
d2b9c8b80d
Fixed maths in testaudiostreamdynamicresample (and just show the actual scale)
2023-08-21 16:02:54 -04:00
Anonymous Maarten
ea8757a748
Make testaudiostreamdynamicresample compatible with emscripten
2023-08-12 17:37:20 +02:00
Ryan C. Gordon
0eda582160
testaudiostreamdynamicresample: Load sample.wav correctly.
2023-07-30 23:00:52 -04:00
Ryan C. Gordon
66bcee2ca9
testaudiostreamdynamicresample.c: Fixed MSVC compiler warning.
2023-07-30 11:56:38 -04:00
Ryan C. Gordon
5d4e9e5f80
test: Updated testaudiostreamdynamicresample to SDL3 audio API.
2023-07-30 11:55:58 -04:00
Anonymous Maarten
b4291412a4
tests: build tests with C90 standard
...
C90 mode is disabled for:
- testautomation: use of isnan/isfinite
- testlock: use of kill
- testvulkan: use of c++ style strings in vulkan.h
2023-05-27 01:49:07 +02:00
Ryan C. Gordon
e5a6c24c82
audio: Redesigned audio conversion code for SDL3.
...
- SDL_AudioCVT is gone, even internally.
- libsamplerate is gone (I suspect our resampler is finally Good Enough).
- Cleanups and improvements to audio conversion interfaces.
- SDL_AudioStream can change its input/output format/rate/channels on the fly!
2023-04-27 18:35:15 -04:00