Re: NSMovieView uses 3-8% CPU after playing a sound?
Re: NSMovieView uses 3-8% CPU after playing a sound?
- Subject: Re: NSMovieView uses 3-8% CPU after playing a sound?
- From: Andrew Platzer <email@hidden>
- Date: Thu, 27 Sep 2001 11:42:05 -0700
On Monday, September 17, 2001, at 03:08 , Adam Iser wrote:
For sound in my app I use a shared 'NSMovieView', simply setting the
movie to the sound I want played and calling 'start:'. But with my
current code I've noticed that after I play a sound, my application uses
3-8% of the CPU (where before I played the sound it would consume almost
0%).
You can use the program Sampler in /Developer/Applications or the command
line tool 'sample' to see where it's spending much of its time. As far as
NSMovieView is concerned, once the movie rate drops to 0 after it finishes
playing, it removes the repeating call to MCIdle in QuickTime. It may be a
problem with QuickTime.
Andrew
__________________________________________________________________
A n d r e w P l a t z e r
A p p l i c a t i o n F r a m e w o r k s
A p p l e