Page 1 of 1

Audio play rate

Posted: Sat Feb 01, 2014 6:36 pm
by teacherguy
I have been spending time this morning learning how to alter the play rate in a stack in order to alter the pitch of a sound file (which is exactly what I want to do). Is there any way to do this in iOS?

Re: Audio play rate

Posted: Sat Feb 01, 2014 7:16 pm
by Mark
Hi,

Use the mobileControlSet command to change the playRate property of a native player control on iOS. Read the dictionary entry for mobileControlSet.

Code: Select all

mobileControlSet gPlayerControlID,"playRate",-1 // backwards, normal speed
mobileControlSet gPlayerControlID,"playRate",0 // stop
mobileControlSet gPlayerControlID,"playRate",0.25 // slowly
mobileControlSet gPlayerControlID,"playRate",2 // forward, twice the normal speed
Kind regards,

Mark

Re: Audio play rate

Posted: Sat Feb 01, 2014 7:45 pm
by teacherguy
Thank you Mark, I just tried this.

It would appear that QT is intervening and maintaining the pitch regardless of the playback rate. Not the result I was hoping for. :(