SwresampleBindings to libswresample. The interface is the one of spec/swresample.md §4.
val version : Avutil.versionThe version of the libswresample loaded at run time, read once when the module is loaded.
How a value of type 'a holds audio samples: its layout (interleaved or planar bytes, float arrays or bigarrays, or a frame) and either a sample format or the fact that the format is given when a converter is created. Only the data modules at the end of this interface provide values of this type.
module type AudioData = sig ... endA data type a converter reads or writes. The modules of this type are the ones at the end of this interface, from Bytes to DblPlanarFrame; a program passes two of them to Make.
type dither_type = [ | `Dither_none| `Dither_rectangular| `Dither_triangular| `Dither_triangular_highpass| `Dither_ns_lipshitz| `Dither_ns_f_weighted| `Dither_ns_modified_e_weighted| `Dither_ns_improved_e_weighted| `Dither_ns_shibata| `Dither_ns_low_shibata| `Dither_ns_high_shibata ]The dithering method of the resampler.
The type of the resampling filter.
A setting of the resampler, given in the ?options list of the creation functions.
A converter from data of type 'i to data of type 'o: it resamples, remixes channels and converts the sample format. It owns its native resampler, released when the value is collected, and keeps nothing of the values given to it or returned by it. Between calls it holds the samples the resampler buffers.
Converters that read values of type I.t and return values of type O.t.
type u8ba =
(int, Stdlib.Bigarray.int8_unsigned_elt, Stdlib.Bigarray.c_layout)
Stdlib.Bigarray.Array1.tUnsigned 8-bit samples.
type s16ba =
(int, Stdlib.Bigarray.int16_signed_elt, Stdlib.Bigarray.c_layout)
Stdlib.Bigarray.Array1.tSigned 16-bit samples.
Signed 32-bit samples.
type f32ba =
(float, Stdlib.Bigarray.float32_elt, Stdlib.Bigarray.c_layout)
Stdlib.Bigarray.Array1.t32-bit float samples.
type f64ba =
(float, Stdlib.Bigarray.float64_elt, Stdlib.Bigarray.c_layout)
Stdlib.Bigarray.Array1.t64-bit float samples.
Raw samples in bytes, channels interleaved in the order of the channel layout, each sample in the machine's native representation of the sample format. The format is given at creation and is a packed one. With stereo signed 16-bit samples, three samples per channel take 12 bytes: L0 R0 L1 R1 L2 R2.
module FloatArray : AudioData with type t = float arraySamples as OCaml floats, channels interleaved: l0 r0 l1 r1 .... The sample format is `Dbl.
module PlanarFloatArray : AudioData with type t = float array arrayOne float array of samples per channel, in the order of the channel layout. The sample format is `Dblp.
module Frame : AudioData with type t = Avutil.audio Avutil.frameAudio frames of the sample format given at creation, packed or planar.
module U8PlanarBytes : AudioData with type t = bytes arrayOne bytes of raw samples per channel, in the order of the channel layout, each sample in the machine's native representation. The sample format is `U8p.
module S16PlanarBytes : AudioData with type t = bytes arrayAs U8PlanarBytes, with the sample format `S16p.
module S32PlanarBytes : AudioData with type t = bytes arrayAs U8PlanarBytes, with the sample format `S32p.
module FltPlanarBytes : AudioData with type t = bytes arrayAs U8PlanarBytes, with the sample format `Fltp.
module DblPlanarBytes : AudioData with type t = bytes arrayAs U8PlanarBytes, with the sample format `Dblp.
module U8BigArray : AudioData with type t = u8baOne bigarray, one element per sample, channels interleaved. The sample format is `U8. An input bigarray is read in place; a bigarray returned is a new one.
module S16BigArray : AudioData with type t = s16baAs U8BigArray, with the sample format `S16.
module S32BigArray : AudioData with type t = s32baAs U8BigArray, with the sample format `S32.
module FltBigArray : AudioData with type t = f32baAs U8BigArray, with the sample format `Flt.
module DblBigArray : AudioData with type t = f64baAs U8BigArray, with the sample format `Dbl.
module U8PlanarBigArray : AudioData with type t = u8ba arrayOne bigarray per channel, in the order of the channel layout, one element per sample. The sample format is `U8p. Input bigarrays are read in place; the bigarrays returned are new ones.
module S16PlanarBigArray : AudioData with type t = s16ba arrayAs U8PlanarBigArray, with the sample format `S16p.
module S32PlanarBigArray : AudioData with type t = s32ba arrayAs U8PlanarBigArray, with the sample format `S32p.
module FltPlanarBigArray : AudioData with type t = f32ba arrayAs U8PlanarBigArray, with the sample format `Fltp.
module DblPlanarBigArray : AudioData with type t = f64ba arrayAs U8PlanarBigArray, with the sample format `Dblp.
module U8Frame : AudioData with type t = Avutil.audio Avutil.frameAudio frames of the sample format `U8.
module S16Frame : AudioData with type t = Avutil.audio Avutil.frameAudio frames of the sample format `S16.
module S32Frame : AudioData with type t = Avutil.audio Avutil.frameAudio frames of the sample format `S32.
module FltFrame : AudioData with type t = Avutil.audio Avutil.frameAudio frames of the sample format `Flt.
module DblFrame : AudioData with type t = Avutil.audio Avutil.frameAudio frames of the sample format `Dbl.
module U8PlanarFrame : AudioData with type t = Avutil.audio Avutil.frameAudio frames of the sample format `U8p.
module S16PlanarFrame : AudioData with type t = Avutil.audio Avutil.frameAudio frames of the sample format `S16p.
module S32PlanarFrame : AudioData with type t = Avutil.audio Avutil.frameAudio frames of the sample format `S32p.
module FltPlanarFrame : AudioData with type t = Avutil.audio Avutil.frameAudio frames of the sample format `Fltp.
module DblPlanarFrame : AudioData with type t = Avutil.audio Avutil.frameAudio frames of the sample format `Dblp.