ap4y/OrigamiEngine

set playback rate?

Juanpe opened this issue · 4 comments

Hi,

Is posible set playback rate?

In AVAudioPlayer there is a rate property to do it.

Thanks!

ap4y commented

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?

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

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!

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!