• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSMovieView uses 3-8% CPU after playing a sound?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSMovieView uses 3-8% CPU after playing a sound? (From: Adam Iser <email@hidden>)

  • Prev by Date: Re: NSImage lockFocus
  • Next by Date: dealloc not being called?
  • Previous by thread: Re: NSMovieView uses 3-8% CPU after playing a sound?
  • Next by thread: Re: NSMovieView uses 3-8% CPU after playing a sound?
  • Index(es):
    • Date
    • Thread