 //
-// Copyright (c) 2006 - 2020 Stephen F. Booth <me@sbooth.org>
+// Copyright (c) 2006 - 2021 Stephen F. Booth <me@sbooth.org>
 // See https://github.com/sbooth/SFBAudioEngine/blob/master/LICENSE.txt for license information
 //
 

		return isInterleaved ? mChannelsPerFrame : 1
	}

	/// Returns `true` if `self` represents linear PCM data
	public var isPCM: Bool {
		return mFormatID == kAudioFormatLinearPCM
	}

	/// Returns `true` if `self` represents big endian audio
	public var isBigEndian: Bool {
		return mFormatFlags & kAudioFormatFlagIsBigEndian == kAudioFormatFlagIsBigEndian
	}

	/// Returns `true` if `self` represents little endian audio
	public var isLittleEndian: Bool {
		return !isBigEndian
	}

	/// Returns `true` if `self` represents native endian audio
	public var isNativeEndian: Bool {
		return mFormatFlags & kAudioFormatFlagIsBigEndian == kAudioFormatFlagsNativeEndian
	}

	/// Returns `true` if `self` represents floating-point data
	public var isFloat: Bool {
		return mFormatFlags & kAudioFormatFlagIsFloat == kAudioFormatFlagIsFloat
	}

	/// Returns `true` if `self` represents integer data
	public var isInteger: Bool {
		return !isFloat
	}

	/// Returns `true` if `self` represents signed integer data
	public var isSignedInteger: Bool {
		return mFormatFlags & kAudioFormatFlagIsSignedInteger == kAudioFormatFlagIsSignedInteger
	}

	/// Returns `true` if `self` represents packed data
	public var isPacked: Bool {
		return mFormatFlags & kAudioFormatFlagIsPacked == kAudioFormatFlagIsPacked
	}

	/// Returns `true` if `self` represents high-aligned data
	public var isAlignedHigh: Bool {
		return mFormatFlags & kAudioFormatFlagIsAlignedHigh == kAudioFormatFlagIsAlignedHigh
	}

	/// Returns the equivalent non-interleaved format of `self`
	/// - note: This returns `nil` for non-PCM formats

		}
		else if mFormatID == kAudioFormatAppleLossless {
			var sourceBitDepth: UInt32 = 0;
			switch mFormatFlags {
			case kAppleLosslessFormatFlag_16BitSourceData:		sourceBitDepth = 16
			case kAppleLosslessFormatFlag_20BitSourceData:		sourceBitDepth = 20
			case kAppleLosslessFormatFlag_24BitSourceData:		sourceBitDepth = 24
