Playing AIFF sounds
Bob Arning
arning at charm.net
Thu May 4 23:21:28 UTC 2000
Dave,
On Thu, 4 May 2000 17:33:12 -0400 "David N. Smith \(IBM\)" <dnsmith at watson.ibm.com> wrote:
> lastSound isNil ifFalse: [
> SoundPlayer waitUntilDonePlaying: lastSound ].
[...snip...]
> lastSound := name
I don't know if this was a typo in sending the message, but <lastSound> should be the sound, not the name for #waitUntilDonePlaying: to work correctly.
Have you checked that "Allow processor cycling" is OFF in the Energy Saver control panel? This can sometimes mess with sound.
Another experiment: increase BufferMSecs in SoundPlayer class>>initialize
initialize
"SoundPlayer initialize; shutDown; startUp"
"Details: BufferMSecs represents a tradeoff between latency and quality. If BufferMSecs is too low, the sound will not play smoothly, especially during long-running primitives such as large BitBlts. If BufferMSecs is too high, there will be a long time lag between when a sound buffer is submitted to be played and when that sound is actually heard. BufferMSecs is typically in the range 50-200."
SamplingRate _ 22050.
BufferMSecs _ 120. "<<<try increasing this??"
Stereo _ true.
UseReverb ifNil: [UseReverb _ true].
Cheers,
Bob
More information about the Squeak-dev
mailing list
|