On 9 Jul 2008, at 04:21, Jason Bobier wrote:
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.
Well it's still possible to do that with AppleScript,
Search the archives, someone fairy recently open sourced a nice
NSSound category that allows volume control, just to make your life
easier.
Mike.
On 8 Jul 2008, at 04:25, Jason Bobier wrote:
Hey folks,
Has anyone figured out how to control a machine's volume level
(specifically muting)
On 8 Jul 2008, at 10:25, Mike Abdullah wrote:
Search the archives, someone fairy recently open sourced a nice
NSSound category that allows volume control, just to make your life
easier.
That would be me :-)
The thread appears to be hard to find in the archives, so here is a
link:
On 8 Jul 2008, at 6:24am, Phil wrote:
However, I would urge you not to mess around with the user's volume
control, even you think it is an emergency---the user may feel very
differently. Your application should play an alert sound, and trust
that the user's system output volume and alert
Am 08.07.2008 um 12:46 Uhr schrieb [EMAIL PROTECTED]:
2. Bring up an alert and after a set amount of time without the user
responding to it, then start making things louder.
Don't.
If I mute the sound, I don't want to hear a thing, even if this
machine is going to blow up.
Should I
On Tue, Jul 8, 2008 at 6:46 AM, [EMAIL PROTECTED] wrote:
1. Give the user a preference setting 'Allow Your app to override system
sound level for critical alerts'
I don't think having a preference that essentially states I am a
blathering idiot and you know better than me. When I mute my
On Jul 8, 2008, at 8:18 AM, Matt Gough wrote:
To be fair to the OP, if his app really is going to try to warn me
of impending injury or potential loss of life then I think it is
silly to argue that he shouldn't turn the sound up as loud as it can
go and start telling me to run. I think you
On Mon, 07 Jul 2008 23:25:34 -0400, Jason Bobier [EMAIL PROTECTED] said:
Hey folks,
Has anyone figured out how to control a machine's volume level
(specifically muting) from code? I know that you can do it from
Applescript, but running an applescript from code seems to be a rather
clunky
Always worthwhile checking the archives before posting. The technique is
pretty well demonstrated here:
http://www.cocoabuilder.com/archive/message/cocoa/2008/3/12/201211
Wherein I respond:
http://www.cocoabuilder.com/archive/message/cocoa/2008/3/13/201268
... and I stick by that
On or about 7/8/08 10:56 AM, thus spake I. Savant
[EMAIL PROTECTED]:
AudioDeviceSetProperty() is of
course more efficient but unless you're muting/unmuting the overall
system volume fifty times per second, the user truly won't notice,
therefore AppleScript will work **JUST FINE**. ;-)
But
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,
Thanks for the pointers. I'll take a look.
I should note that this isn't an computer emergency, this is a real
emergency, i.e. there is a hurricane coming and you need to be here.
Part of the requirements from the emergency first responders is that
this unmute any muted computers.
Jason
lol.. I knew I should have specified that this is a product
requirement from users to avoid all of the worrying people are doing
about my app. :-)
Jason
On Jul 8, 2008, at 7:52 AM, Andreas Mayer wrote:
Am 08.07.2008 um 12:46 Uhr schrieb [EMAIL PROTECTED]:
2. Bring up an alert and after
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
Hey folks,
Has anyone figured out how to control a machine's volume level
(specifically muting) from code? I know that you can do it from
Applescript, but running an applescript from code seems to be a rather
clunky approach.
This is for emergency notification, so I have to be able to
On Tue, Jul 8, 2008 at 3:25 PM, Jason Bobier [EMAIL PROTECTED] wrote:
Has anyone figured out how to control a machine's volume level (specifically
muting) from code? I know that you can do it from Applescript, but running
an applescript from code seems to be a rather clunky approach.
This is
16 matches
Mail list logo