PCMFormat
public struct PCMFormat
PCMのフォーマットを格納する構造体。
-
サンプリングレートのデフォルト値( 48000 )。
Declaration
Swift
public static let DEFAULT_SAMPLE_RATE: Double
-
チャンネル数のデフォルト値( 1チャンネル )
Declaration
Swift
public static let DEFAULT_CHANNELS: Int
-
WAVEのフォーマットIDを表す列挙型。
See moreDeclaration
Swift
public enum FormatId : UInt16
-
フォーマットID。
Declaration
Swift
public let formatId: UInt16
-
チャンネル数。
Declaration
Swift
public let channels: UInt16
-
サンプリングレート。
Declaration
Swift
public let sampleRate: UInt32
-
1サンプルあたりのビット数。
Declaration
Swift
public let bitsPerSample: UInt16
-
PCMFormatを生成します。
Declaration
Swift
public init(formatId: UInt16, channels: UInt16, sampleRate: UInt32, bitsPerSample: UInt16)
Parameters
formatId
フォーマットID
channels
チャンネル数
sampleRate
サンプルレート
bitsPerSample
1サンプルあたりのビット数
-
PCMFormatを生成します。
Declaration
Swift
public init(formatId: FormatId, channels: UInt16, sampleRate: UInt32, bitsPerSample: UInt16)
Parameters
formatId
フォーマットID
channels
チャンネル数
sampleRate
サンプルレート
bitsPerSample
1サンプルあたりのビット数
-
PCMFormatを生成します。
Declaration
Swift
public init(commonFormat: AVAudioCommonFormat, channels: UInt16, sampleRate: UInt32)
Parameters
commonFormat
音声フォーマット
channels
チャンネル数
sampleRate
サンプルレート
-
対応する AVAudioCommonFormat。
Declaration
Swift
public var commonFormat: AVAudioCommonFormat? { get }