Results for “Std.Audio.Pcm”
21 matching declarations
Use module:Std.List, kind:fn, or is:exact. Put a Pudu type after ::.
- Std.Audio.Pcm
Interleaved signed 16-bit PCM held as its little-endian bytes.
- Std.Audio.Device.play
&Std.Audio.Device.Plan -> &Std.Audio.Pcm -> Result[Std.Audio.Device.Playback, Std.Audio.Device.DeviceError]Play one admitted interleaved signed-16 clip and await exact completion.
- Std.Audio.Device.write
&Std.Audio.Device.Stream -> &Std.Audio.Pcm -> Result[Int, Std.Audio.Device.DeviceError]Enqueue one exact PCM chunk with bounded backpressure.
- Std.Audio.Graph.clip
Std.Audio.Pcm -> Int -> Std.Audio.Graph.NodeA clip of audio that begins at a frame of the output.
- Std.Audio.Graph.render
&Std.Audio.Graph.Node -> &Std.Audio.Format -> Int -> Int -> Result[Std.Audio.Pcm, Std.Audio.Graph.GraphError]Exactly
framesframes of a graph starting at framestart. - 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.frameCount
&Std.Audio.Pcm -> IntHow many frames audio holds.
- 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.sampleAt
&Std.Audio.Pcm -> Int -> Int -> Option[Int]One sample, or nothing outside the audio.
- Std.Audio.samples
&Std.Audio.Pcm -> Array[Int]The interleaved samples of audio, one integer per sample.
- 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.
