• 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: controlling system muting ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: controlling system muting ?


  • Subject: Re: controlling system muting ?
  • From: Jason Bobier <email@hidden>
  • Date: Tue, 08 Jul 2008 23:21:47 -0400

I also need to determine the user's current mute and volume settings and restore them after my alert plays, which is the other reason that I was looking for something other than AppleScript.

Jason

On Jul 8, 2008, at 4:02 PM, I. Savant wrote:

But that isn't what the OP asked. The OP asks *how* to do it without
AppleScript - not *whether* to do it without AppleScript. Furthermore, the
OP is right that running an AppleScript from within Cocoa/Objective- C is
noticeably slower than going thru CoreAudio. m.

Actually, the OP said, "running an applescript from code seems to be a rather clunky approach". Nothing about it being 'noticeably slower'. I've not compared the two directly but I notice no pause whatsoever with a button wired to a "create and run a 'mute volume' AppleScript" method run on my first revision MBP.

 Regardless, I wasn't suggesting he not use CoreAudio, merely that
there's nothing inherently wrong with using AS if all you want to do
is a one-off toggle of mute/unmute. Does it *really* have to happen in
under 5 nanoseconds when 5 milliseconds is practically imperceptible
as it is?

 All I'm saying (and I'll keep saying it) is that in this situation,
AS works just fine.

--
I.S.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: controlling system muting ?
      • From: Mike Abdullah <email@hidden>
References: 
 >Re: controlling system muting ? (From: "I. Savant" <email@hidden>)
 >Re: controlling system muting ? (From: Matt Neuburg <email@hidden>)
 >Re: controlling system muting ? (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: controlling system muting ?
  • Next by Date: Re: How to create to-many accessor methods at runtime
  • Previous by thread: Re: controlling system muting ?
  • Next by thread: Re: controlling system muting ?
  • Index(es):
    • Date
    • Thread