icculus / mojoAL

An SDL2-based implementation of OpenAL in a single C file.
https://icculus.org/mojoAL/
zlib License
154 stars 20 forks source link

Implement a playback speed extension? #15

Open ivan-mogilko opened 2 years ago

ivan-mogilko commented 2 years ago

Since recently there have been a discussion about possibly having a stereo panning extension, I thought to ask if it's theoretically acceptable to have a "playback speed" extension? I mean the effect which can be achieved by resampling with higher or lower rate (frequency).

It is of course possible to do this before passing sound data into openal, but with data buffering this results in delayed effect whenever the speed changes (also requires to do extra calculations externally).