Skip to main content

Module slin

Module slin 

Source
Expand description

Asterisk-style headerless signed-linear PCM container (.sln / .slin*).

An .sln file is the degenerate container: the entire file body is raw interleaved 16-bit little-endian PCM at a sample rate implied by the extension. No header, no magic, no trailer. Mono only in Asterisk’s own usage, and that is what this demuxer assumes.

Extension → sample rate (the Asterisk convention):

extensionsample rate
sln / slin8_000 Hz
sln8 / slin88_000 Hz
sln12 / slin1212_000 Hz
sln16 / slin1616_000 Hz
sln24 / slin2424_000 Hz
sln32 / slin3232_000 Hz
sln44 / slin4444_100 Hz
sln48 / slin4848_000 Hz
sln96 / slin9696_000 Hz
sln192 / slin192192_000 Hz

The muxer writes raw S16LE bytes verbatim with no framing.

Functions§

open_demuxer_with_rate
Programmatic entry point: open a .sln* stream at an explicit sample rate. Useful when the caller demuxes from memory and cannot supply a filename hint through the registry’s extension lookup.
probe
Raw PCM has no magic bytes, so this probe is only able to fire on the file extension. Returns PROBE_SCORE_EXTENSION (25) when an .sln* / .slin* extension is supplied and 0 otherwise — a weak hint that any real container probe will outrank.
register