bool CAHALAudioDevice::IsRunningSomewhere() const { CAPropertyAddress theAddress(kAudioDevicePropertyDeviceIsRunningSomewhere); UInt32 theAnswer = 0; if(HasProperty(theAddress)) { theAnswer = GetPropertyData_UInt32(theAddress, 0, NULL); } return theAnswer != 0; }
UInt32 CAHALAudioStream::GetLatency() const { CAPropertyAddress theAddress(kAudioStreamPropertyLatency); return GetPropertyData_UInt32(theAddress, 0, NULL); }
UInt32 CAHALAudioStream::GetStartingChannel() const { CAPropertyAddress theAddress(kAudioStreamPropertyStartingChannel); return GetPropertyData_UInt32(theAddress, 0, NULL); }
UInt32 CAHALAudioStream::GetTerminalType() const { CAPropertyAddress theAddress(kAudioStreamPropertyTerminalType); return GetPropertyData_UInt32(theAddress, 0, NULL); }
UInt32 CAHALAudioStream::GetDirection() const { CAPropertyAddress theAddress(kAudioStreamPropertyDirection); return GetPropertyData_UInt32(theAddress, 0, NULL); }
UInt32 CAHALAudioDevice::GetMaximumVariableIOBufferSize() const { CAPropertyAddress theAddress(kAudioDevicePropertyUsesVariableBufferFrameSizes); return GetPropertyData_UInt32(theAddress, 0, NULL); }
UInt32 CAHALAudioDevice::GetIOBufferSize() const { CAPropertyAddress theAddress(kAudioDevicePropertyBufferFrameSize); return GetPropertyData_UInt32(theAddress, 0, NULL); }
UInt32 CAHALAudioDevice::GetClockDomain() const { CAPropertyAddress theAddress(kAudioDevicePropertyClockDomain); return GetPropertyData_UInt32(theAddress, 0, NULL); }
UInt32 CAHALAudioDevice::GetSafetyOffset(bool inIsInput) const { CAPropertyAddress theAddress(kAudioDevicePropertySafetyOffset, inIsInput ? kAudioDevicePropertyScopeInput : kAudioDevicePropertyScopeOutput); return GetPropertyData_UInt32(theAddress, 0, NULL); }
bool CAHALAudioDevice::IsRunning() const { CAPropertyAddress theAddress(kAudioDevicePropertyDeviceIsRunning); UInt32 theAnswer = GetPropertyData_UInt32(theAddress, 0, NULL); return theAnswer != 0; }
bool CAHALAudioDevice::IsHidden() const { CAPropertyAddress theAddress(kAudioDevicePropertyIsHidden); return GetPropertyData_UInt32(theAddress, 0, NULL) != 0; }
bool CAHALAudioDevice::IsAlive() const { CAPropertyAddress theAddress(kAudioDevicePropertyDeviceIsAlive); return GetPropertyData_UInt32(theAddress, 0, NULL) != 0; }
OSStatus CAHALAudioDevice::GetDevicePlugInStatus() const { CAPropertyAddress theAddress(kAudioDevicePropertyPlugIn); return GetPropertyData_UInt32(theAddress, 0, NULL); }
bool CAHALAudioDevice::CanBeDefaultDevice(bool inIsInput, bool inIsSystem) const { CAPropertyAddress theAddress(inIsSystem ? kAudioDevicePropertyDeviceCanBeDefaultSystemDevice : kAudioDevicePropertyDeviceCanBeDefaultDevice, inIsInput ? kAudioDevicePropertyScopeInput : kAudioDevicePropertyScopeOutput); return GetPropertyData_UInt32(theAddress, 0, NULL) != 0; }
UInt32 CAHALAudioDevice::GetTransportType() const { CAPropertyAddress theAddress(kAudioDevicePropertyTransportType); return GetPropertyData_UInt32(theAddress, 0, NULL); }