Re: [LAD] How to get correct midi timings from ALSA using the library only

2007-07-24 Thread Carlo Florendo
Florian Schmidt wrote: Here's the pseudo-code of the relevant MIDI player routine: for (i = 0; i < number_of_events; i++) { usleep(event[i].delta_time_in_microseconds); output_and_drain_event(event[i]); } This routine gives a non-bearable latency on 2.4 kernels but not so much on 2.6

[LAD] Re: [alsa-devel] How to get correct midi timings from ALSA using the library only

2007-07-24 Thread Carlo Florendo
Clemens Ladisch wrote: However, I wish to be able to make the sequencer or player work without the use of the ALSA queue nor the workaround in (2). Why? Because the queue output and draining, AFAICS, is implemented in a blocking manner. When events are being played by the queue in the kerne

Re: [LAD] APIC, IRQ's, and realtime

2007-07-24 Thread Lee Revell
On 24 Jul 2007 15:07:26 -, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I've been trying to get a kernel built that will run smoothly, but this is the problem I keep running into, I compile the kernel with SMP processor support, because my processor is a dual core (duh right?) but as some ma

[LAD] APIC, IRQ's, and realtime

2007-07-24 Thread arisstotle . 52613058
I've been trying to get a kernel built that will run smoothly, but this is the problem I keep running into, I compile the kernel with SMP processor support, because my processor is a dual core (duh right?) but as some may know, this automatically builds in APIC support. This then leads to unruly I

[LAD] Re: [alsa-devel] How to get correct midi timings from ALSA using the library only

2007-07-24 Thread Clemens Ladisch
Carlo Florendo wrote: > (1) I've written a command line MIDI sequencer for lightweight systems and > am successful in making it work using the ALSA queue API. However, one > drawback of the API is its lack of callback functions. I wish to be able > to track events as they are drained by the qu

Re: [LAD] How to get correct midi timings from ALSA using the library only

2007-07-24 Thread Florian Schmidt
On Tuesday 24 July 2007, Carlo Florendo wrote: > Hi, > > (1) I've written a command line MIDI sequencer for lightweight systems and > am successful in making it work using the ALSA queue API. However, one > drawback of the API is its lack of callback functions. I wish to be able > to track events

Re: [LAD] How to get correct midi timings from ALSA using the library only

2007-07-24 Thread Robin Gareus
Carlo Florendo wrote: > How could I get the app to sleep() in the most accurate way in > userspace clock_nanosleep() - see also http://linuxaudio.org/pipermail/linux-audio-dev/2007-March/018691.html robin ___ Linux-audio-dev mailing list Linux-aud

[LAD] How to get correct midi timings from ALSA using the library only

2007-07-24 Thread Carlo Florendo
Hi, (1) I've written a command line MIDI sequencer for lightweight systems and am successful in making it work using the ALSA queue API. However, one drawback of the API is its lack of callback functions. I wish to be able to track events as they are drained by the queue. (2) I know and ha