Public PCM conversion helpers. One-to-one parity with Swift's
extension RunAnywhere in RAAudioConvert.swift.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
pcm16ToFloat32(
Uint8List int16Bytes) → Float32List -
Convert a buffer of Int16 PCM samples to Float32 samples in the range
[-1.0, 1.0]. Matches SwiftRunAnywhere.pcm16ToFloat32(_:)and commonsrac_audio_pcm16_to_float32(divides each sample by32768.0). -
pcm16ToFloat32Samples(
Uint8List int16Bytes) → List< double> -
Convenience overload that returns the normalised samples as a
List<double>when callers want to inspect samples directly without going through the SDK's bytes-based audio surface. Matches SwiftRunAnywhere.pcm16ToFloat32Samples(_:). -
pcm16ToWav(
Uint8List int16Bytes, {required int sampleRate}) → Uint8List -
Wrap raw 16-bit mono PCM samples in a canonical 44-byte WAV (RIFF)
container:
RIFF+fmt(16-byte PCM chunk, format tag 1, 1 channel)