ap4y / OrigamiEngine

Lightweight audio engine for iOS and OSX with flac, cue, mp3, m4a, m3u support.
http://ap4y.github.com/OrigamiEngine/
MIT License
545 stars 118 forks source link

set playback rate? #30

Open Juanpe opened 10 years ago

Juanpe commented 10 years ago

Hi,

Is posible set playback rate?

In AVAudioPlayer there is a rate property to do it.

Thanks!

ap4y commented 10 years ago

Hi,

Right now there is not such feature, it's not hard to implement I think. I think changing sample rate in required proportion in converter will allow you to achieve that. Out of curiosity, what do you plan to use it for?

MaxDesiatov commented 10 years ago

the most common use case is setting playback rate for podcasts and audiobooks, as this is a must have feature for even simplest podcasts and audiobooks players (even standard podcasts.app has it)

ap4y commented 10 years ago

Thanks @explicitcall. Never knew about that :) Just wanted to clarify by playback rate you mean ability to play more(or less?) samples of the PCM data within the same period of time, right? Meanwhile, I will check how it works in podcasts.app. Thanks!

daria-kopaliani commented 8 years ago

I also could use this feature. Did anyone already figured this out? (So far simply changing sample ORGMOutputUnit does not solve this for me). Thanks!