[Alsaplayer-devel] Time stretch with soundtouch

Frank Baumgart frank.baumgart at gmx.net
Fri Jul 20 23:36:34 BST 2007


Luis Garrido wrote:
> Hi there!
>
> I need a media player that can loop a section of an audio file and
> apply time stretching and transposition to it. The most obvious
> solution is adding support for the SoundTouch library to an existing
> media player.
>
> I am making a survey about which media player framework could make my
> work easier.
>
> Can someone plese hint how would one go around this within AlsaPlayer?
>
> Thanks,
>
> L

AP should support integration of SoundTouch well.
(SoundTouch will already have an i/o delay of up to 100ms and AP adds
some x0 ms to this,
you may have to slightly optimize some AP constants to speed up
busy-waiting, if you need)

Depending on the API of SoundTouch's I/O buffer handling (which I did
not look into), you may get the core work done in
CorePlayer::streamer_func() alone, without touching the (quite complex)
functions below.

Otherwise, start at app/CorePlayer.cpp and read CorePlayer::Start(),
then understand CorePlayer::Read32(...) and CorePlayer::producer_func(...)

Frank




More information about the alsaplayer-devel mailing list