Other Functions

The following functions are available globally.

  • Helper function to convert codes for Audio Units - parameter string: Four character string to convert

    Declaration

    Swift

    public func fourCC(_ string: String) -> UInt32

    Parameters

    string

    Four character string to convert

  • Wrapper for printing out status messages to the console, eventually it could be expanded with log levels - parameter string: Message to print

    Declaration

    Swift

    public func AKLog(_ string: String, fname: String = #function)

    Parameters

    string

    Message to print

  • Declaration

    Swift

    public func CheckError(_ error: OSStatus)

    Parameters

    error

    OSStatus flag