• 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: Getting Volume Controls
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting Volume Controls


  • Subject: Re: Getting Volume Controls
  • From: bryan <email@hidden>
  • Date: Mon, 20 Sep 2004 12:34:32 -0700

Thank you, Jeff.  I eventually stumbled onto this fact :)

In the system audio settings, where you can select the between microphone and
line input, there is a "vu meter" that shows the input level.  Can you tell me
the exact calculation used in this level display?  Or if it is possible to get
the system to give me the input level directly?



Quoting Jeff Moore <email@hidden>:

> What you are missing is the fact that not all pieces of hardware have a
> master volume control, which is what you are asking about in your code.
> It is quite common for devices, like the built-in  hardware on most
> Macs, to have individual channel volumes so you would need to ask for
> the volume on channel 1 and channel 2 as well as the master channel.
>
> On Sep 18, 2004, at 11:56 AM, bryan wrote:
>
> >
> > I am using the Java CoreAudio classes, and I want to be able to read
> > the
> > volume on the default input and output devices, but I am running into
> > problems:
> >
> > // query for the input device -- succeeds
> > AudioDevice device = AudioHardware.getDefaultInputDevice();
> >
> > // create a memory object to hold the Float32
> > CAMemoryObject propVal = new CAMemoryObject(4,true);
> >
> > // query for the volume -- fails with
> > kAudioHardwareUnknownPropertyError
> > device.getInputProperty
> > (0,AHConstants.kAudioDevicePropertyVolumeScalar,propVal);
> >
> > I have also tried to query for kAudioDevicePropertyVolumeDecibels with
> > the
> > same result.
> >
> > Any idea what I am missing?
> >
> > Thanks,
> > Bryan
> >
> >  _______________________________________________
> > 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
> >
>
> --
>
> Jeff Moore
> Core Audio
> Apple
>
>  _______________________________________________
> 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
>



 _______________________________________________
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: Getting Volume Controls
      • From: Jeff Moore <email@hidden>
References: 
 >Explanation of AudioFileWritePackets (From: Alexander Dvorak <email@hidden>)
 >Getting Volume Controls (From: "bryan" <email@hidden>)
 >Re: Getting Volume Controls (From: Jeff Moore <email@hidden>)

  • Prev by Date: Re: MatrixMixer Pulling
  • Next by Date: Matching input and output signals
  • Previous by thread: Re: Getting Volume Controls
  • Next by thread: Re: Getting Volume Controls
  • Index(es):
    • Date
    • Thread