> Seems reasonable. Can you test this?
> (or provide at least provide a documentation reference).
The AudioDeviceGetProperty function is documented in the
CoreAudio header file AudioHardwareDeprecated.h and it is
very clear that property_size needs to be the size of the
receiving area on the call and gets set to the length of the
data returned by the call.
@function AudioDeviceGetProperty
@abstract Queries an the AudioDevice object to get the data of
the given property and
places it in the provided buffer.
@discussion Note that the same functionality is provided by the
function
AudioObjectGetPropertyData().
@param inDevice
The AudioDevice to query.
@param inChannel
The channel of the property to query where 0 is
the master channel.
@param isInput
Which section of the AudioDevice to query.
@param inPropertyID
The AudioDevicePropertyID of the property to
query.
@param ioPropertyDataSize
A UInt32 which on entry indicates the size of
the buffer pointed to by
outData and on exit indicates how much of the
buffer was used.
@param outPropertyData
The buffer into which the object will put the
data for the given property.
@result An OSStatus indicating success or failure.
*/
extern OSStatus
AudioDeviceGetProperty( AudioDeviceID inDevice,
UInt32 inChannel,
Boolean isInput,
AudioDevicePropertyID inPropertyID,
UInt32* ioPropertyDataSize,
void* outPropertyData)
PS: Changing from using the deprecated CoreAudio interfaces would be a
larger change...
--
http://www.fastmail.com - Same, same, but different...
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381
_______________________________________________
SoX-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sox-devel