Skip to content

Editor: fallback audio should stream not convert #3

@tomasklaen

Description

@tomasklaen

Figure out how to play a stream of Uint8Array chunks of raw pcm audio data. That way we don't have to convert audio to a huge wav file and play that, but can be handling it efficiently in memory only.

There is already makeAudioStream() in src/lib/ffmpeg.ts that creates the stream, but I was unable to figure out how to play it. The web audio API docs and examples available around the net are a spaghetti monster that has lead me to 10 or more dead ends before I've lost patience.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions