10.1.5 Compatibility?
10.1.5 Compatibility?
- Subject: 10.1.5 Compatibility?
- From: Jeremy Sagan <email@hidden>
- Date: Sun, 19 Jan 2003 02:08:16 -0500
I have a bunch of questions regarding 10.1.5 compatibility and
codewarrior,
1. Clearly this structure is 36 bytes
struct AudioStreamBasicDescription
{
Float64 mSampleRate; // the native sample rate of the audio stream
UInt32 mFormatID; // the specific encoding type of audio stream
UInt32 mFormatFlags; // flags specific to each format
UInt32 mBytesPerPacket; // the number of bytes in a packet
UInt32 mFramesPerPacket; // the number of frames in each packet
UInt32 mBytesPerFrame; // the number of bytes in a frame
UInt32 mChannelsPerFrame; // the number of channels in each frame
UInt32 mBitsPerChannel; // the number of bits in each channel
};
But all of the device drivers return arrays of 40 bytes. So I assume
this is an alignment issue. Since I get back an array of these from
err = AudioDeviceGetProperty(theID , 0 , //master Channel
isinput, kAudioDevicePropertyStreamFormats, &outputSize, asbdp);
I need to know what the drivers alignment is. Is there any way to get
codewarrior 8.3 to align to 8 byte boundaries for arrays?
2. My app was quitting when I called AUParameterValueFromLinear in
10.1.5. Is there a way to call this function in 10.1.5? I was under the
impression that core audio was extensible and it would return an error
and would not crash the program. Is this a codewarrior issue? I get a
message in the console log telling me that this function was not where
it was expected to be.
3. My app was also quitting when I called the CoreMIDI function
MIDIEndpointGetEntity. I need this function to walk the device tree. Is
there a way to acquire the device name in OS 10.1.5?
Thanks,
Jeremy
_______________________________________________
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.