Re: More on NSMovieView using CPU - any workarounds?
Re: More on NSMovieView using CPU - any workarounds?
- Subject: Re: More on NSMovieView using CPU - any workarounds?
- From: Vince DeMarco <email@hidden>
- Date: Sat, 22 Sep 2001 15:42:17 -0700
On Friday, September 21, 2001, at 05:40 PM, Adam Iser wrote:
I've completely run into a corner with this NSMovieView issue (where
it's eating 3-8% of the CPU's cycles after the sound finishes playing).
My plan was to simply wait until the sound stops playing, then dispose
the movie view to prevent it from eating cycles... creating another for
the next sound. But there are 2 problems with this ;)
1) there appear to be no notifications issued when a movie finishes
playing.
2) [NSMovieView isPlaying] always returns YES!? even after the sound is
over...
So I'm stumped. Is this issue fixed in 10.1 (I guess it would be
evident in the finder)?
How is everybody else playing sounds? (keeping in mind I need to be
able to control each sound's volume independently)
You need to get a copy of the QuickTime documentation, try the Apple
Book.
Discovering QuickTime,
There are call backs you can set in given a Movie Structure (ask NSMovie
for the QTMovie)
If you want to see an example of doing more of this kind of stuff look at
bMoviePalette on developer.apple.com
(
http://developer.apple.com/samplecode/Sample_Code/Cocoa/bMoviePalette.htm)
vince