ADTSHeader
public struct ADTSHeader
ADTSヘッダー(AACヘッダー)を格納する構造体。
-
ヘッダー長。
Declaration
Swift
public private(set) var headerLength: Int
-
パケット長。
Declaration
Swift
public private(set) var packetLength: Int16
-
プロファイル(MPEG-4 Audioの種類)。
Declaration
Swift
public private(set) var profile: Int16
-
MPEG-4のサンプリング周波数の番号。
Declaration
Swift
public private(set) var freqIds: Int16
-
MPEG-4のチャンネル構成。
Declaration
Swift
public private(set) var chanCfg: Int16
-
サンプリングレートを表す列挙型。
See moreDeclaration
Swift
public enum SampleRates : Double
-
サンプリングレート。
Declaration
Swift
public var sampleRate: Double { get }
-
フォーマットを表すフラグ。
Declaration
Swift
public var formatFlags: UInt32 { get }
-
先頭バイトから解析を行い、ADTSヘッダーフォーマットであれば ADTSHeader を返却します。
Declaration
Swift
public static func parse(data: Data) -> ADTSHeader?
Parameters
data
データ
Return Value
ADTSHeader