void CAHALAudioStream::GetAvailableVirtualFormatByIndex(UInt32 inIndex, AudioStreamRangedDescription& outFormat) const { UInt32 theNumberFormats = GetNumberAvailableVirtualFormats(); if((theNumberFormats > 0) && (inIndex < theNumberFormats)) { CAAutoArrayDelete<AudioStreamRangedDescription> theFormats(theNumberFormats); GetAvailableVirtualFormats(theNumberFormats, theFormats); if((theNumberFormats > 0) && (inIndex < theNumberFormats)) { outFormat = theFormats[inIndex]; } } }
bool CCoreAudioStream::GetAvailableVirtualFormats(StreamFormatList* pList) { return GetAvailableVirtualFormats(m_StreamId, pList); }