• 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: External Sound Components
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: External Sound Components


  • Subject: Re: External Sound Components
  • From: Mark Thomas <email@hidden>
  • Date: Wed, 05 Jan 2005 17:05:58 +0000
  • Organization: Coderus Ltd

Hi,
I'm doing

ComponentDescription searching;
Component outputDevice=NULL;

// search for a sound output device component
searching.componentType                    = kSoundOutputDeviceType;
searching.componentSubType            = kAnyComponentSubType;
searching.componentManufacturer    = kAnyComponentManufacturer;
searching.componentFlags                = 0;
searching.componentFlagsMask        = kAnyComponentFlagsMask;

outputDevice = FindNextComponent(outputDevice, &searching);
while ( outputDevice )
{
    ComponentDescription compDesc;
    char module[200], description[200];

    GetComponentInfo(outputDevice, &compDesc, name,info,NULL);

    outputDevice = FindNextComponent(outputDevice, &searching);

}

  Is this not correct ???.

Thanks
Mark.

> Is your code using QuickTime to get the "device list" because i know for
> certain that CoreAudio doesn't list FireWire DV as a valid device.
>
> i think you're going to want to take a look at AudioHardware.h in the
> CoreAudio framework, specifically the 'dev#' property and the
> AudioHardwareGetProperty() function this returns a list of actual devices
> so for your G5 it would list "Built-in" and querying the sources property
> would return that it has internal speaker and optical out.
>
> hope this helps.
> -rudy
>
>> Hi,
>>   Looking at the same code on G5 Tower, my Sound system preferences lists
>> internal speaker and digital line out, and Apple USB speakers, but the
>> below
>> listing is still the same, as I'm listing the kSoundOutputDeviceType.
>>
>>   so I'm guess this isn't the right way to go about getting the possible
>> output devices ???, or is it, as I understood that this is what you are
>> suppose to use ???.
>>
>>   How are you suppose to do this correctly,
>>
>> Thanks
>> Mark.
>>
>> --------------------------------------------------------------------
>>
>> Hi,
>>   I was playing with some code listing the output sound components of my
>> 17"
>> portable, but I was surprise that I had 4 output components
>>
>> 1) <no name given>
>> 2) Firewire DV
>> 3) Mac OS X Audio Hal
>> 4) Mac OS X Audio Hal (System).
>>
>>   What are the difference in these ???, and as I only have the internal
>> speakers which appear in the sound preference I'm surprised I get all
>> these
>>
>> Can anybody shed some light on this.
>>
>> Thanks
>> Mark.
>>
>>  _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Coreaudio-api mailing list      (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
v
>>
>> 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: External Sound Components
      • From: Doug Wyatt <email@hidden>
  • Prev by Date: Re: Megalatency
  • Next by Date: coreaudio example compilation errors
  • Previous by thread: FW: External Sound Components
  • Next by thread: Re: External Sound Components
  • Index(es):
    • Date
    • Thread