[LAD] Handling multiple audio streams [was: Adding a c timer to Kluppe]

Patrick Shirkey pshirkey at boosthardware.com
Wed May 5 03:48:39 UTC 2010


On 05/04/2010 03:07 PM, Louigi Verona wrote:
> Hey Patrick!
>
> Maybe I should once more make an attempt to contact the original 
> kluppe developer. Maybe he'll find some time to reply.
>


Fyi, if possible you should try not to top post on this list.

I doubt that contacting the original developer is the best way to solve 
this issue.  The main issue is how to write a threaded timer in c. The 
original developer may not be experienced enough to know how to do this 
effectively either.

It's possible someone on this list has a workable suggestion or even a 
code example but it seems everyone is busy at the moment or not 
interested in this topic.

Patrick Shirkey
Boost Hardware Ltd





> Louigi.
>
> On Thu, Apr 29, 2010 at 3:10 AM, Patrick Shirkey 
> <pshirkey at boosthardware.com <mailto:pshirkey at boosthardware.com>> wrote:
>
>     Hi,
>
>     Just in case anyone has had some time to ponder this problem and
>     has forgotten to respond or missed the original request for
>     assistance.
>
>     I would like to add a timer function to kluppe so that I can add a
>     timed delay to the playback start for an individual loop.
>
>     There are a couple of problems with the current implementation.
>
>     1: There is an annoying buzz when the loop is paused on three out
>     of four pause scenarios. This is probably related to the buffer
>     being trapped on pause for some reason.
>     2: With the current implementation using select(), the pause
>     affects all running loops.
>
>     I tried to work asynchronously with signal and alarm() but that
>     was suggested as the wrong method.
>
>     Now I am out of my depth as I am not sure how to create an
>     asynchronous timer in c that will apply to the kluppe system. For
>     example in some other languages there are timers and example code
>     already written for this problem which makes it a fairly simple
>     procedure to implement. Perhaps there is also something
>     fundamental with the kluppe code that makes this problem even more
>     difficult. If someone has a suggestion for the correct way to
>     handle this problem I am more than happy to code it up and learn
>     something new but I am aware that if I have to figure this one out
>     by myself it's gonna take some time.
>
>     The current test code is here:
>     http://djcj.org/code/kluppe-0.6.14-playbackdelay.tar.bz2
>
>     The core code can be found at src/common/looperdata.c:1342
>
>     To enable the timed playback pause you need to adjust the bottom
>     right spinbox in the spinbox grid panel for a specific loop.
>
>
>
>
>     Cheers.
>
>
>
>     Patrick Shirkey
>     Boost Hardware Ltd
>
>
>     _______________________________________________
>     Linux-audio-dev mailing list
>     Linux-audio-dev at lists.linuxaudio.org
>     <mailto:Linux-audio-dev at lists.linuxaudio.org>
>     http://lists.linuxaudio.org/listinfo/linux-audio-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20100505/616c21ef/attachment.html>


More information about the Linux-audio-dev mailing list