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;
kMTCoreAudioDevicePlaybackDirectionkMTCoreAudioDeviceRecordDirectionAn 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;
kMTCoreAudioStreamLogicalSidekMTCoreAudioStreamPhysicalSideAn 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;
hasVolumetrue if this channel has a volume associated
with it, and false if it does not.
canSetVolumetrue if this channel's volume can be changed,
and false if it is static.
theVolume0.0 and 1.0.
Valid only if hasVolume is true.
canMutetrue if this channel can be muted.
isMutedtrue if this channel is currently muted.
canPlayThrutrue if this channel supports Play-Thru mode, in which
the record section is routed directly by the hardware to the playback
section.
playThruIsSettrue if this channel is currently in Play-Thru mode.