Module Avutil.Sample_format

Formats for audio samples.

type t = [
  1. | `None
  2. | `U8
  3. | `S16
  4. | `S32
  5. | `Flt
  6. | `Dbl
  7. | `U8p
  8. | `S16p
  9. | `S32p
  10. | `Fltp
  11. | `Dblp
  12. | `S64
  13. | `S64p
]

Audio sample formats.

val get_name : t -> string option

Return the name of the sample format if it exists.

val find : string -> t

Find a sample format by its name. Raises Not_found when none exist.

val get_id : t -> int

Return the internal ID of the sample format.

val find_id : int -> t

Find a sample format from its ID. Raises Not_found when none exist.