Squeak 2.1/Linux/sound!

Andreas Raab raab at isgnw.CS.Uni-Magdeburg.De
Tue Aug 18 16:34:52 UTC 1998


Hi,

> Specifically, if I 'flip' a page in the parts bin, I will get the
> flipping sound.  If I flip it again, I get an error:
> 
> 'subscript is out of bounds: 8817'.

Just try changing the first line of SoundPlayer>>startPlayingImmediately:
to

	dontInsertSamples _ true.

This should work. The behavior of the insert primitive is a little tricky
and startPlayingImmediately: does *not* work correctly if the insertion
primitive returns anything less than BufferSize (see the comment line
"assert: 0 < leftover <= Buffer stereoSampleCount").

  Andreas
-- 
Linear algebra is your friend - Trigonometry is your enemy.
+===== Andreas Raab ============= (raab at isg.cs.uni-magdeburg.de) =====+
I Department of Simulation and Graphics      Phone: +49 391 671 8065  I
I University of Magdeburg, Germany           Fax:   +49 391 671 1164  I
+=============< http://isgwww.cs.uni-magdeburg.de/~raab >=============+





More information about the Squeak-dev mailing list