Replies: 1 comment 3 replies
-
@vkalpias wrote the audio subsystems. Any thoughts on this? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I'm looking to modify the playcanvas engine such that the set pitch function only changes the playback rate of sounds, and keeps its pitch, so I can speed up and slow down sounds without changing their pitches.
I saw documentation here that says playbackRate pitch corrects audio by default, but am not sure whether this is the implementation playcanvas uses.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/playbackRate
Accordingly I've gone through the playcanvas source code, commenting/disabling code that changes the pitch and keeping the changes to playbackrate.
I've also found that changing _pitch and pitch variables does not seem to have an effect on the actual sound pitch.
Any pointers/helpful information on this would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions