Skip to main content

decode_frame_at

Function decode_frame_at 

Source
pub fn decode_frame_at(
    flo_data: &[u8],
    frame_index: u32,
) -> Result<Vec<f32>, JsValue>
Expand description

Decode a single frame by index without decoding the entire file

§Arguments

  • flo_data - Complete flo file bytes
  • frame_index - Zero-based frame index

§Returns

Interleaved audio samples for that frame (f32, -1.0 to 1.0)