Re: [AD] MIDIs played too slow in 3.9.36

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Peter Wang wrote:
> 
> On 27 Jun 2001, Thomas Fjellstrom <tfjellstrom@xxxxxxxxxx> wrote:
> > Eric Botcazou wrote:
> > > > exmidi says Microsoft MIDI mapper.
> > >
> > > Ok, try the following thing: open the file src/win/wtimer.c, comment out
> > > line 34 ("{TIMER_WIN32_MT, &timer_win32_mt, TRUE},"), save and recompile.
> 
> It's much slower under Linux too (> 20 sec when I tested).
> 
> > Also I found out that the new thead support in linux didn't help
> > one bit. It actually slowed everything down a bit. In my
> > allegro I have it disabled.
> 
> It turns out `usleep' is not very accurate (20 msec granularity, I
> think), and `select' is actually better (10 msec, like SIGALRM).
> But that's another patch.  You'll have to wait :-)

Also (tm) why does allegro's midi player eat up so much cpu time?
pmidi behaves much better than allegro and the alsamidi driver.

-- 
"Computer programmers don't byte, they nybble a bit."
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx
http://strangesoft.net/



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/