dbenamy / threes-company

Our project for VG Design 4995 at Columbia University
0 stars 0 forks source link

Sounds should be played asynchronously #56

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Right now when a sound plays, the animation stops until it's done. They
should happen simultaneously.

Original issue reported on code.google.com by dbenamy on 14 Dec 2007 at 5:32

GoogleCodeExporter commented 9 years ago
SoundEngine now runs in a single separate thread.  There seems to be a delay at 
the
end of simulation sometimes, when blobs (especially big ones) are dying.  That 
is
happening BEFORE the request to play the sound is sent.  It can look as if the
simulation is waiting for the sound to play, but in fact the reverse is true.  
It can
be verified by setting breakpoints, or turning the sound off, in which case
SoundEngine.play() is a noop.

Original comment by gene...@gmail.com on 14 Dec 2007 at 3:22