pub fn to_os_status(&self) -> OSStatus {
        match *self {
            Error::Unspecified                                                 => -1500,
            Error::NoMatchingDefaultAudioUnitFound                             => -1500,
            Error::RenderCallbackBufferFormatDoesNotMatchAudioUnitStreamFormat => -1500,
            Error::SystemSoundClientMessageTimedOut                            => -1501,
            Error::Audio(err)                                                  => err as OSStatus,
            Error::AudioCodec(err)                                             => err as OSStatus,
            Error::AudioUnit(err)                                              => err as OSStatus,
            _                                                                  => -1500,
        }
    }
/// Convert an Error to an OSStatus.
Convert an Error to an OSStatus.
Convert an Error to an OSStatus .
pub fn to_os_status(&self) -> OSStatus {
        match *self {
            Error::Unspecified                                                 => -1500,
            Error::NoMatchingDefaultAudioUnitFound                             => -1500,
            Error::RenderCallbackBufferFormatDoesNotMatchAudioUnitStreamFormat => -1500,
            Error::SystemSoundClientMessageTimedOut                            => -1501,
            Error::Audio(err)                                                  => err as OSStatus,
            Error::AudioCodec(err)                                             => err as OSStatus,
            Error::AudioUnit(err)                                              => err as OSStatus,
            _                                                                  => -1500,
        }
    }
pub fn to_os_status ( & self ) -> OSStatus { match * self { Error :: Unspecified => - 1500 , Error :: NoMatchingDefaultAudioUnitFound => - 1500 , Error :: RenderCallbackBufferFormatDoesNotMatchAudioUnitStreamFormat => - 1500 , Error :: SystemSoundClientMessageTimedOut => - 1501 , Error :: Audio ( err ) => err as OSStatus , Error :: AudioCodec ( err ) => err as OSStatus , Error :: AudioUnit ( err ) => err as OSStatus , _ => - 1500 , } }
Convert an Error to an OSStatus.
Convert an Error to an OSStatus .
&self
&self