<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
On 05/04/2010 03:07 PM, Louigi Verona wrote:
<blockquote
 cite="mid:j2s20aeede51005032207p46e6410dra10b44416c17e5a0@mail.gmail.com"
 type="cite">Hey Patrick!<br>
  <br>
Maybe I should once more make an attempt to contact the original kluppe
developer. Maybe he'll find some time to reply.<br>
  <br>
</blockquote>
<br>
<br>
Fyi, if possible you should try not to top post on this list.<br>
<br>
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.<br>
<br>
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.<br>
<br>
<pre class="moz-signature" cols="72">
Patrick Shirkey
Boost Hardware Ltd</pre>
<br>
<br>
<br>
<br>
<blockquote
 cite="mid:j2s20aeede51005032207p46e6410dra10b44416c17e5a0@mail.gmail.com"
 type="cite">Louigi.<br>
  <br>
  <div class="gmail_quote">On Thu, Apr 29, 2010 at 3:10 AM, Patrick
Shirkey <span dir="ltr"><<a moz-do-not-send="true"
 href="mailto:pshirkey@boosthardware.com">pshirkey@boosthardware.com</a>></span>
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
    <br>
Just in case anyone has had some time to ponder this problem and has
forgotten to respond or missed the original request for assistance.<br>
    <br>
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.<br>
    <br>
There are a couple of problems with the current implementation.<br>
    <br>
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.<br>
2: With the current implementation using select(), the pause affects
all running loops.<br>
    <br>
I tried to work asynchronously with signal and alarm() but that was
suggested as the wrong method.<br>
    <br>
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.<br>
    <br>
The current test code is here: <a moz-do-not-send="true"
 href="http://djcj.org/code/kluppe-0.6.14-playbackdelay.tar.bz2"
 target="_blank">http://djcj.org/code/kluppe-0.6.14-playbackdelay.tar.bz2</a><br>
    <br>
The core code can be found at src/common/looperdata.c:1342<br>
    <br>
To enable the timed playback pause you need to adjust the bottom right
spinbox in the spinbox grid panel for a specific loop.<br>
    <br>
    <br>
    <br>
    <br>
Cheers.<br>
    <br>
    <br>
    <br>
Patrick Shirkey<br>
Boost Hardware Ltd<br>
    <br>
    <br>
_______________________________________________<br>
Linux-audio-dev mailing list<br>
    <a moz-do-not-send="true"
 href="mailto:Linux-audio-dev@lists.linuxaudio.org" target="_blank">Linux-audio-dev@lists.linuxaudio.org</a><br>
    <a moz-do-not-send="true"
 href="http://lists.linuxaudio.org/listinfo/linux-audio-dev"
 target="_blank">http://lists.linuxaudio.org/listinfo/linux-audio-dev</a><br>
  </blockquote>
  </div>
  <br>
</blockquote>
</body>
</html>