Player object and memory

2006-03-09 Thread Peter T. Evensen
I am trying to play a sequence of MP3s. I am using 3 interleaved players to speed up the transition between the sounds. I set up the first 3 sounds on Player 1 - Player 3. I then start Player 1 and when I get a playStopped message, I start Player 2 and set the filename for Player 1 to the

Player object and memory

2006-03-09 Thread Peter T. Evensen
I am trying to play a sequence of MP3s. I am using 3 interleaved players to speed up the transition between the sounds. I set up the first 3 sounds on Player 1 - Player 3. I then start Player 1 and when I get a playStopped message, I start Player 2 and set the filename for Player 1 to the

Re: Player object and memory

2006-03-09 Thread Scott Rossi
Recently, Peter T. Evensen wrote: I am trying to play a sequence of MP3s. I am using 3 interleaved players to speed up the transition between the sounds. I set up the first 3 sounds on Player 1 - Player 3. I then start Player 1 and when I get a playStopped message, I start Player 2 and set

Re: Player object and memory

2006-03-09 Thread Peter T. Evensen
Scott, Thanks for your input. I'll try setting it to empty and then setting it to the next filename. I was thinking part of the issue was that at one point I was setting the filename to empty and I thought that might be causing the issue. I'm locking message before I set the filename so I

Re: Player object and memory

2006-03-09 Thread Peter T. Evensen
Still hangs, even if I set the filename to empty. I did this: lock messages set the filename of the target to empty set the filename of the target to the first item of tCurrentSoundList unlock messages Is that what you had in mind? Any other suggestions? This is

Re: Player object and memory

2006-03-09 Thread Scott Rossi
Recently, Peter T. Evensen wrote: Still hangs, even if I set the filename to empty. I did this: lock messages set the filename of the target to empty set the filename of the target to the first item of tCurrentSoundList unlock messages Is that what you had in mind?

Re: Player object and memory

2006-03-09 Thread Peter T. Evensen
It hangs someplace down the line (i.e., not the first file name). The code I have below IS used to set every filename, but it is still hanging. I thought maybe the lock messages was causing a legitimate playStopped to be missed, so I modified it to use a custom property as a semaphore and it

Re: Player object and memory

2006-03-09 Thread Trevor DeVore
On Mar 9, 2006, at 10:18 AM, Peter T. Evensen wrote: Any other suggestions? This is becoming a show-stopper. I couldn't get a SMIL file to work over the network. It wouldn't play all the files (it would skip some to keep up). You could try creating a reference movie using EnhancedQT.

Re: Player object and memory

2006-03-09 Thread Peter T. Evensen
I think that might take too long (especially over a network).I'm playing on the order of 10-20 files in sequence to read a word problem sentence that has been spliced together. I originally tried creating the number of players I'd need and setting each one to the appropriate filename and

Re: Player object and memory

2006-03-09 Thread Peter T. Evensen
I think I solved the problem. The issue comes from starting a player in the playStopped handler. I set up a group with the number of players needed to play all the sounds and use the handlers as below (but since I had enough players, they didn't need to load any new files) and it still hung