• 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
kAudioDevicePropertyStreamFormat error on Tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

kAudioDevicePropertyStreamFormat error on Tiger


  • Subject: kAudioDevicePropertyStreamFormat error on Tiger
  • From: Dominic Feira <email@hidden>
  • Date: Tue, 15 Nov 2005 22:53:21 -0500

Hello. I received a bug report recently on my app regarding a particular USB audio input/output device from 2 separate users. It seems that after updating to 10.4.3 it no longer works correctly. The device in question is the ADS Tech RDX-150-EF that is available at CompUSA. I picked one of these up for testing and can confirm the report.

I can not confirm that it worked on 10.4.2. I do not have a 10.4.2 machine to test it on. I can however confirm that it works properly under Panther. The device shows up as USB Audio Codec in both Panther and Tiger, which I'm assuming is some generic USB audio driver.

Here is a snippet of code that errors with this device on 10.4.3

bestMatch before:
Sample Rate:44100.000000 Format ID:lpcm
Format Flags:0 Bytes per Packet:8
Frames per Packet:1 Bytes per Frame:8
Channels per Frame:2 Bits per Channel:32
Reserved: 0

qThrowIfError(AudioDeviceGetProperty(in, 0, TRUE, kAudioDevicePropertyStreamFormatMatch,
&size, &bestMatch), "AudioDeviceGetProperty");
bestMatch after:
Sample Rate:44100.000000 Format ID:lpcm
Format Flags:B Bytes per Packet:8
Frames per Packet:1 Bytes per Frame:8
Channels per Frame:2 Bits per Channel:32
Reserved: 707406378 // on Panther this is 570434084


qThrowIfError(AudioDeviceSetProperty(in, 0, 0, TRUE, kAudioDevicePropertyStreamFormat,
sizeof(AudioStreamBasicDescription),
&bestMatch), "AudioDeviceSetProperty");

This throws: '!dat' == kAudioDeviceUnsupportedFormatError. How can a device not support the format that was just returned by kAudioDevicePropertyStreamFormatMatch? Again, this works correctly under Panther.

Dominic Feira / Code Monkey / Ambrosia Software, Inc.
 _______________________________________________
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: kAudioDevicePropertyStreamFormat error on Tiger
      • From: Jeff Moore <email@hidden>
  • Prev by Date: AudioFileGetPropertyInfo() on kAudioFilePropertyDataFormat returning 0?
  • Next by Date: Re: Datasources and digital audio output
  • Previous by thread: SPBRecord won't record from two separate SI devices at the same time???
  • Next by thread: Re: kAudioDevicePropertyStreamFormat error on Tiger
  • Index(es):
    • Date
    • Thread