Giter VIP home page Giter VIP logo

Comments (5)

devongovett avatar devongovett commented on June 21, 2024

Your test.opus file is zero length. Causes #7.

from ogg.js.

mon avatar mon commented on June 21, 2024

I've updated the test to use a larger (~1MiB) test file. It is now using ogg vorbis instead of opus.

Making the code change in #7 fixes the 500 sample opus file, but still no callback for the vorbis.

from ogg.js.

devongovett avatar devongovett commented on June 21, 2024

I get an abort. Looks like an assertion is being triggered somewhere in the vorbis decoder.

from ogg.js.

mon avatar mon commented on June 21, 2024

I've tracked it down to a segfault in a realloc in ogg_sync_buffer (framing.c:645). It asks for 16 and 23k, then fails on a request for 28k. I'm out of my depth now.

Changing vorbis.js's buffer size to 2048 (instead of 4192) makes the decode succeed, but the audio is shorter than it should be and fairly garbled. I did a bit more fiddling with buffer sizes but most end in an abort(). I don't think I'm on the right track. I will continue to investigate.

from ogg.js.

mon avatar mon commented on June 21, 2024

Changing framing.c:641 to increase in multiples of 8kiB instead of 4kiB produces correct decodes. This feels like a hacky workaround though. This might be an emscripten bug but I'm hesitant to suggest this because of my lack of knowledge.

from ogg.js.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.