sound player thread eats CPU

stéphane ducasse ducasse at iam.unibe.ch
Sat Sep 18 20:32:33 UTC 2004


please,
add a but report on bugs.impara.de

Stef


On 18 sept. 04, at 19:45, Martin Kuball wrote:

> This is a problem I observerd in all squeak images I used, going back
> at least to 3.4. Now using all new 3.7 I still have the problem that
> once the Sound Player thread is activated it consumes almost all the
> CPU power that's available (ca 95%). I'm using squeak on Linux with
> the artsdsp script to route sound output to the arts daemon.
>
> The process browser displays this method (some lines omitted)
>
> playLoop
> 	"The sound player process loop."
>
> 	| bytesPerSlice count willStop mayStop |
> 	mayStop _ Preferences soundStopWhenDone.
> 	bytesPerSlice _ Stereo ifTrue: [4] ifFalse: [2].
> 	[true] whileTrue: [
> 		[(count _ self primSoundAvailableBytes // bytesPerSlice) > 100]
> 			whileFalse: [ReadyForBuffer wait].
>
> where the method selector wait is printed in red letters. Any hints to
> solve the problem are welcome.
>
> Martin
>




More information about the Squeak-dev mailing list