ataylor Posted October 19, 2016 Share Posted October 19, 2016 I have situations where I would like to play an AmbientSource sound source at sample rates that vastly differ from the original sample rate of the waveform. Unfortunately, AmbientSource::setPitch is clamping the sample rate in the .1 ~ 10 range. I would like to see this restriction removed, including the ability to pass in negative values to play the sample in reverse. Link to comment
silent Posted October 26, 2016 Share Posted October 26, 2016 Hi Adam, What kind of values will satisfy your needs? Right now indeed there is a clamping between 0.1 and 10. Not sure about negative pitch values. Basically, you need an ability play sound sample in reverse with certain speed? Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
ataylor Posted October 31, 2016 Author Share Posted October 31, 2016 Hi Andrey. In our case, the clamping above .1f is more of a frustration than the clamping below 10.f. We would like to set the sample rate of the original waveform anywhere between 0% and 100% of its original rate but are currently prevented from doing so in the 0~10% range. And yes, we would like to be able to play a sound sample in reverse at a certain speed. We have a sound that we would like to be able to play both forwards and backwards at different times. Currently this requires a separate waveform / separate AmbientSource for the forward and backward playback. It would be convenient and less expensive to be able to do this with a single waveform file and AmbientSource. Link to comment
Recommended Posts