All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benno Senoner <sbenno@gardena.net>
To: linux-sound@vger.kernel.org
Subject: Re: Bad MIDI performance : 10ms latency instead of the expected 1-1.5ms
Date: Thu, 26 Aug 1999 20:42:29 +0000	[thread overview]
Message-ID: <marc-linux-sound-93570014906759@msgid-missing> (raw)
In-Reply-To: <marc-linux-sound-93568883025986@msgid-missing>

On Thu, 26 Aug 1999, Jaroslav Kysela wrote:
>> > A 100% CPU usage for 1sec ?
> > I can't believe this.
> 
> Try it.
> 
> linux/drivers/sound/mpu401.c:
> 
>         /*
>          * Sometimes it takes about 30000 loops before the output becomes ready
>          * (After reset). Normally it takes just about 10 loops.
>          */
> 
>         for (timeout = 30000; timeout > 0 && !output_ready(devc); timeout--);

arrgh, really bad !

 > > 200bytes/sec is just rudiculous , how do you plan to drive an external synth
> > with that little MIDI bandwidth ?
> 
> I need a timer around 2000Hz for some good code. I won't support polling
> mode (busy loop) in any case.

Yes, is there some free timer available in Linux to perform this job ?
It would be nice to be able to use the full MIDI bandwidth without eating
all the CPU power.

> 
> > Many songs uses up much of the 3000 bytes/sec bandwidth, especially
> > when there are many  controller/pitchbend events present.
> > 
> > Do you know if the RX FIFO of the MPU401 has the same problem (no interrupt) or
> > is there an interrupt present ?
> 
> No, MPU401 has Rx interrupt.
Fortunately ! , this means you can still use your PC as a realtime synth/sampler
when played through a MIDI masterkeyboard

> 
> > Does this mean that sequencers running under Windows have the same problems
> > as we in Linux on the AWE64 ?
> 
> I don't know, how is this problem solved under W$.
> 
> 						Jaroslav
certainly in a sub-optimal way.
:-)

regards,
Benno.

  parent reply	other threads:[~1999-08-26 20:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-26 17:34 Bad MIDI performance : 10ms latency instead of the expected 1-1.5ms Benno Senoner
1999-08-26 18:42 ` Bad MIDI performance : 10ms latency instead of the expected Jaroslav Kysela
1999-08-26 19:38 ` Bad MIDI performance : 10ms latency instead of the expected 1-1.5ms Benno Senoner
1999-08-26 20:20 ` Bad MIDI performance : 10ms latency instead of the expected Alan Cox
1999-08-26 20:41 ` Alan Cox
1999-08-26 20:42 ` Benno Senoner [this message]
1999-08-26 20:51 ` Jaroslav Kysela
1999-08-26 21:04 ` Alan Cox
1999-08-26 21:53 ` Benno Senoner
1999-09-18 21:26 ` Bad MIDI performance : 10ms latency instead of the expected 1-1.5ms Peter Enderborg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-linux-sound-93570014906759@msgid-missing \
    --to=sbenno@gardena.net \
    --cc=linux-sound@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.