Trying to make Linux squawk (startPlayingImmediately:)
Maloney
johnm at wdi.disney.com
Mon Feb 16 17:56:05 UTC 1998
>Christopher,
>
>> I'm trying to cruft up some sound code for Linux, and the main worrisome
>> part is snd_InsertSamplesFromLeadTime().
As Andreas pointed out, this feature currently only works on the Mac and
is tricky to implement. We were willing to go to almost any lengths to
reduce the latency between asking for a sound to play and having the
sound actually come out the speaker. We're basically fighting the
driver's need to pre-buffer a certain number of samples to get smooth
playing, most of which is a result of the underlying OS not being
designed for real-time processes.
However, sound plays fine if you just disable this code.
We'd be very interested in getting your code, especially if it
can be generalized to work under other Unix variants.
-- John
More information about the Squeak-dev
mailing list
|