MiniQuake

src/miniquake/sound/wav.ml

Package
miniquake.sound.wav
Reachable
Yes

Imports

Declarations

load

function load(filename)

Implements the `load` operation for `miniquake.sound.wav` (load).

ParameterTypeDefaultDescription
filenamedynamic—Path of the file to process.

View source

parse

function parse(data, filename)

Implements the `parse` operation for `miniquake.sound.wav` (parse).

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
filenamedynamic—Path of the file to process.

View source

resample

function resample(info, data, targetRate, force8Bit)

Implements the `resample` operation for `miniquake.sound.wav` (resample).

ParameterTypeDefaultDescription
infodynamic—The info input consumed by `resample`.
datadynamic—Input data consumed by the operation.
targetRatedynamic—The target rate input consumed by `resample`.
force8Bitdynamic—The force8 bit input consumed by `resample`.

View source

sampleAt

function sampleAt(info, data, sampleIndex, channel)

Build deterministic test data for at.

ParameterTypeDefaultDescription
infodynamic—The info input consumed by `sampleAt`.
datadynamic—Input data consumed by the operation.
sampleIndexdynamic—Zero-based index of the requested entry.
channeldynamic—The channel input consumed by `sampleAt`.

View source