These types and constants are used in MTCoreAudio.framework.
An MTCoreAudioDirection is used to specify the section of an audio device, either input or output.
typedef enum MTCoreAudioDirection { kMTCoreAudioDevicePlaybackDirection, kMTCoreAudioDeviceRecordDirection } MTCoreAudioDirection;
kMTCoreAudioDevicePlaybackDirection
kMTCoreAudioDeviceRecordDirection
An MTCoreAudioStreamSide is used to specify the logical or physical side of a stream when querying or setting stream formats.
typedef enum MTCoreAudioStreamSide { kMTCoreAudioStreamLogicalSide, kMTCoreAudioStreamPhysicalSide } MTCoreAudioStreamSide;
kMTCoreAudioStreamLogicalSide
kMTCoreAudioStreamPhysicalSide
An MTCoreAudioVolumeInfo conveys all the useful information about a channel's volume-related settings all at once. It is only returned as the result of a query.
typedef struct _MTCoreAudioVolumeInfo { Boolean hasVolume; Boolean canSetVolume; Float32 theVolume; Boolean canMute; Boolean isMuted; Boolean canPlayThru; Boolean playThruIsSet; } MTCoreAudioVolumeInfo;
hasVolume
true
if this channel has a volume associated
with it, and false
if it does not.
canSetVolume
true
if this channel's volume can be changed,
and false
if it is static.
theVolume
0.0
and 1.0
.
Valid only if hasVolume
is true
.
canMute
true
if this channel can be muted.
isMuted
true
if this channel is currently muted.
canPlayThru
true
if this channel supports Play-Thru mode, in which
the record section is routed directly by the hardware to the playback
section.
playThruIsSet
true
if this channel is currently in Play-Thru mode.