Skip to content

Is decoding a specific part of a gargantuan file supported efficiently? #212

Description

@JohnWeisz

Good afternoon, and thanks for your work on this project.

We are interested in trying out Aurora.js for a new streaming-audio-resource system that requires on-demand random access for specific time ranges. For example, given a 10-hour long mp3 file, I'm wondering if it's possible to extract audio samples from 3:10:00 to 3:10:20, without reading the entire file into memory, or even the part leading up to the requested time-range.

The docs specify 2 use-cases:

  • Running playback at live listening rate to get audio samples (Asset.start and Asset.stop)
  • Decoding the entire thing into a buffer (Asset.decodeToBuffer, this is obviously unusable)

Basically, what I'm wondering about is whether a combination of these 2 is supported.
Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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