Results for “Std.Audio.AudioError”
17 matching declarations
Use module:Std.List, kind:fn, or is:exact. Put a Pudu type after ::.
- Std.Audio.AudioError
Why audio could not be built, transformed, encoded, or decoded.
- Std.Audio.append
&Std.Audio.Pcm -> &Std.Audio.Pcm -> Result[Std.Audio.Pcm, Std.Audio.AudioError]One stream followed by another of the same format.
- Std.Audio.decodeWav
&Bytes -> Result[Std.Audio.Pcm, Std.Audio.AudioError]Audio from a 16-bit PCM WAV document, within the default sample budget.
- Std.Audio.decodeWavWithin
&Bytes -> Int -> Result[Std.Audio.Pcm, Std.Audio.AudioError]Audio from a 16-bit PCM WAV document holding at most
maxSamplessamples. - Std.Audio.downmix
&Std.Audio.Pcm -> Result[Std.Audio.Pcm, Std.Audio.AudioError]Mono audio averaging every channel of each frame, rounded half away from zero.
- Std.Audio.encodeWav
&Std.Audio.Pcm -> Result[Bytes, Std.Audio.AudioError]A canonical 16-bit PCM WAV document.
- Std.Audio.format
Int -> Int -> Result[Std.Audio.Format, Std.Audio.AudioError]A format with a sample rate from 8,000 to 384,000 and one to eight channels.
- Std.Audio.framesAt
&Std.Audio.Format -> Int -> Int -> Result[Int, Std.Audio.AudioError]The frame at a time given in seconds as a fraction, rounded down.
- Std.Audio.fromSamples
&Std.Audio.Format -> Array[Int] -> Result[Std.Audio.Pcm, Std.Audio.AudioError]Audio from interleaved samples, refusing a partial frame or a sample that
- Std.Audio.gain
&Std.Audio.Pcm -> Int -> Result[Std.Audio.Pcm, Std.Audio.AudioError]Audio scaled by a Q15 gain, where 32,768 is unity.
- Std.Audio.mix
&Std.Audio.Pcm -> &Std.Audio.Pcm -> Result[Std.Audio.Pcm, Std.Audio.AudioError]Two streams summed sample by sample, saturating to 16 bits.
- Std.Audio.remap
&Std.Audio.Pcm -> &Array[Int] -> Result[Std.Audio.Pcm, Std.Audio.AudioError]Audio whose channel
kis the source's channelorder[k], so channels are - Std.Audio.resample
&Std.Audio.Pcm -> Int -> Result[Std.Audio.Pcm, Std.Audio.AudioError]Audio at another sample rate by linear interpolation in exact arithmetic.
- Std.Audio.seconds
&Std.Audio.Format -> Int -> Result[Std.Audio.Seconds, Std.Audio.AudioError]The exact duration of a number of frames, as a reduced fraction of a second.
- Std.Audio.silence
&Std.Audio.Format -> Int -> Result[Std.Audio.Pcm, Std.Audio.AudioError]Silent audio of a whole number of frames.
- Std.Audio.slice
&Std.Audio.Pcm -> Int -> Int -> Result[Std.Audio.Pcm, Std.Audio.AudioError]Exactly
framesframes starting atstart, silent past the end. - Std.Audio.upmix
&Std.Audio.Pcm -> Int -> Result[Std.Audio.Pcm, Std.Audio.AudioError]Mono audio copied into every channel of a wider format.
