# AudioFormat Structure

    public struct AudioFormat

Compressed audio format metadata for subsequent `AudioSample` events.

- `codec`

  Codec identifier when available.

  #### Declaration

  Swift

      public let codec: String?

- `container`

  Container/framing used by `AudioSample.data`.

  #### Declaration

  Swift

      public let container: AudioSampleContainer

- `initializationData`

  Codec initialization data when required by the decoder.

  #### Declaration

  Swift

      public let initializationData: Data?

- `sampleRate`

  Sample rate in Hz when available.

  #### Declaration

  Swift

      public let sampleRate: Int?

- `channelCount`

  Number of audio channels when available.

  #### Declaration

  Swift

      public let channelCount: Int?

- `bitrate`

  Nominal bitrate in bits per second when available.

  #### Declaration

  Swift

      public let bitrate: Int64?

- `bitsPerSample`

  Bits per audio sample when available.

  #### Declaration

  Swift

      public let bitsPerSample: Int?