mackron / miniaudio

Audio playback and capture library written in C, in a single source file.
https://miniaud.io
Other
4.07k stars 361 forks source link

change sound's pitch #766

Closed xielock1 closed 1 year ago

xielock1 commented 1 year ago

I noticed that miniaudio has an API to modify the sound pitch, but trying this effect will change the playback speed of the original sound. Is there a way to only change the pitch without changing the speed?

mackron commented 1 year ago

No, there's no built-in way to do this in miniaudio. You would need to implement a custom effect to do this and plug it into the node graph.