Audio play rate
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Audio play rate
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
Hi,
Use the mobileControlSet command to change the playRate property of a native player control on iOS. Read the dictionary entry for mobileControlSet.
Kind regards,
Mark
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
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Re: Audio play rate
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.
It would appear that QT is intervening and maintaining the pitch regardless of the playback rate. Not the result I was hoping for.
