• 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
DIGI001 zero channels!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DIGI001 zero channels!


  • Subject: DIGI001 zero channels!
  • From: Ethan Funk <email@hidden>
  • Date: Sun, 6 Jun 2004 15:13:37 -0700

I use the following code to get a count of the Input and Output
channels available on a audio device. This code works fine for all the
devices I have tested so far except for Digidesign's DIGI001 interface.
I get a channel count of ZERO in and out. Even when the same program
is connected and playing audio through the device, I still get zero
channels counted. Is this a bug with the Digidesign driver or am I
doing something wrong in my code?

Ethan Funk

nOUTChan = 0;
theSize = sizeof(AudioBufferList);
OSerr = AudioDeviceGetProperty(
theDevice, 0, false,
kAudioDevicePropertyStreamConfiguration,
&theSize, &chanList);
if (!OSerr){
for (j=0; j < chanList.mNumberBuffers; j++)
nOUTChan = nOUTChan +
chanList.mBuffers[j].mNumberChannels;
}

nINChan = 0;
theSize = sizeof(AudioBufferList);
OSerr = AudioDeviceGetProperty(
theDevice, 0, true,
kAudioDevicePropertyStreamConfiguration,
&theSize, &chanList);
if (!OSerr){
for (j=0; j < chanList.mNumberBuffers; j++)
nINChan = nINChan +
chanList.mBuffers[j].mNumberChannels;
}
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: DIGI001 zero channels!
      • From: Brad Ford <email@hidden>
References: 
 >Interleaving confusion... (From: Ethan Funk <email@hidden>)
 >Re: Interleaving confusion... (From: Doug Wyatt <email@hidden>)

  • Prev by Date: More Bundle questions
  • Next by Date: reading a track and its subchannel data
  • Previous by thread: Re: Interleaving confusion...
  • Next by thread: Re: DIGI001 zero channels!
  • Index(es):
    • Date
    • Thread