TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Peter Fitzsimmons
from: Rob Basler
date: 1996-05-09 15:22:00
subject: Help! Tough Prog Questio

PF>I allocated enough buffers (min 2) to hold as many seconds of audio data as
PF>required.  Each buffer also gets its own event sem.  As
PF>each buffer is played,  and i get the MMOS2 notification,
PF>I post the event sem for that buffer -- at which time
PF>another thread, blocked on that sem (the sems are always
PF>cleared in the same round robin order) wakes up and fills
PF>the buffer with new data.

Yes, except I need the latency from the time I choose to start playing a
sound, to the time it actually comes out the speakers to be as short as
possible, which means I need the buffers between the application, and
the sound card to be as small as possible.  With my original playlist
implementation, like the one you are using below, I needed at a minimum
3 64K buffers, at 44K/sec, that's 1-1/3 seconds of buffered data.  I
don't think people would like pulling the trigger, then waiting over a
second for it to go "bang!"  I AM running the playlist continuously, so
its not the startup delay that's the problem, its the time it takes to
get through all the layers and out the speakers.

Having talked to several people on the original MMPM design team (love
that internet) I've come to the conclusion that 2.1 folks, and those
without DART capable sound drivers, are going to get music and
voice only, no sound effects.  Which is too bad, with the Dolby Pro
Logic code I have added, those sfx sound pretty spectacular.

PF>ps: why still support OS/2 2.1?  This only makes sense if
PF>you are writing a business application,  as they are still
PF>a few businesses that have not switched over.

There are around 10M OS/2 users according to IBM.  There are some 6M
warp users.  I don't like to exclude FOUR MILLION PEOPLE if I can
avoid it, since the rest of the program is perfectly 2.1 compatible. I
am going to need all the customers I can find when this thing finally
hits the market.

Rob.
___
 X SLMR 2.1a X It isn't pretty being easy.

--- Maximus/2 3.01
* Origin: Frog Hollow Port Moody BC 604-469-0264/0284 (1:153/290)
SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955
SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2808 2809
@PATH: 153/290 2 716 920 270/101 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.