• 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: CPU Usage difference
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CPU Usage difference


  • Subject: Re: CPU Usage difference
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 6 Mar 2009 15:24:23 -0800



What I found is that, all application who requiere audio output doesn't have the same CPU usage depending if the audio output is internal speaker or headphone/line out.
The difference is impressive.
For instance, if we use the Finder to play an audio file :


Line out : CPU charge = 3.5%
Internal speaker : CPU charge = 10.9%

I think Apple ® is doing a software filtering to compensate very small sized speaker but this difference is really huge.

The speaker and line-out interfaces may be running at different sample rates. (I've seen this myself; I had a bizarre bug that was triggered by plugging in headphones. Turned out this reset the HAL to change between 44k and 48k.) That would mean that sample-rate conversion is involved in playback over one or the other interface.


If you're curious you could always run 'sample' or Xray on the app while it's playing, and see where the time goes.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: CPU Usage difference
      • From: William Stewart <email@hidden>
References: 
 >CPU Usage difference (From: Alex ROUGE <email@hidden>)
 >Re: CPU Usage difference (From: William Stewart <email@hidden>)

  • Prev by Date: Re: CPU Usage difference
  • Next by Date: Re: CPU Usage difference
  • Previous by thread: Re: CPU Usage difference
  • Next by thread: Re: CPU Usage difference
  • Index(es):
    • Date
    • Thread