this fails with a kAudioUnitErr_InvalidPropertyValue.
Does your device have input streams? Setting the above property
will fail if the device is not capable of capturing audio. The
Sequence Grabber determines this by querying it for its streams on
the input side.
Yes. My device does have input streams.
I declare this by returning values in DeviceGetProperty (for the
kAudioDevicePropertyStreamConfiguration, kAudioDevicePropertyStreams,
kAudioDevicePropertyStreamFormatSupported, and the
kAudioDevicePropertyIOProcStreamUsage selectors). I also return data
for pretty much every possible selector under StreamGetProperty
(kAudioStreamPropertyDirection, kAudioStreamPropertyStartingChannel,
kAudioStreamPropertyTerminalType, kAudioDevicePropertyStreamFormat,
kAudioDevicePropertyStreamFormats,
kAudioStreamPropertyPhysicalFormat,
kAudioStreamPropertyPhysicalFormats, etc.)
The last selector I listed under DeviceGetProperty,
kAudioDevicePropertyIOProcStreamUsage, isn't fully coded out yet.
I set mNumberStreams = 2 (for left and right channels) in the
AudioHardwareIOProcStreamUsage structure being returned, but haven't
put anything into mStreamIsOn yet. Could these undefined values be
the issue?
Is the Sequence Grabber that robust in checking structures out?
thanks again,
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden