SDL Mixer/Audio setting frequency for individual samples


I would like the possibility to set the playback frequency for each individual sound sample just before it’s called to play; not just ‘once and for all’ during initializing with the Mix_OpenAudio() function. Or maintained in that function but then adjusted by some float factor sent as an argument to the Mix_PlayChannel() function,
were 1.0 would correspond to un-altered and 1.3 to 30% increased playback frequency. Maybe even a negative number to play the sample backwards; -0.5 for half speed backwards fo example.

This could lead to saving resources/memory; not having to use as many samples if one could use
fewer ones more liberally.


Not tested here.