Giter Site home page Giter Site logo

Comments (2)

zhushenwudi avatar zhushenwudi commented on June 4, 2024

当我使用 buffer 模式时会崩溃
final music = await rootBundle.load('assets/music/01.flac');
audioBus = await AudioBus.fromBuffer(music.buffer.asUint8List());

Log:
caught internal loading exception: FLAC decode exception FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC
libc++abi.dylib: terminating with uncaught exception of type std::runtime_error: FLAC decode exception FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC

  • thread #29, stop reason = signal SIGABRT
    frame #0: 0x00000001b1e66df0 libsystem_kernel.dylib__pthread_kill + 8 libsystem_kernel.dylib__pthread_kill:
    -> 0x1b1e66df0 <+8>: b.lo 0x1b1e66e0c ; <+36>
    0x1b1e66df4 <+12>: stp x29, x30, [sp, #-0x10]!
    0x1b1e66df8 <+16>: mov x29, sp
    0x1b1e66dfc <+20>: bl 0x1b1e450e8 ; cerror_nocancel
    Target 0: (Runner) stopped.

from lab_sound_flutter.

xioxin avatar xioxin commented on June 4, 2024

抱歉, 由于工作比较忙,没有及时回复

FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC 流中的错误导致解码器失去同步。这意味着软件无法正确读取文件。它可能是由 FLAC 文件中的结构错误的数据、FLAC 文件中帧内的音频损坏或许多其他原因引起的。

可以先试试其他的flac音频,
或者试试将文件写入到磁盘,通过AudioBus.fromFile 加载.(fromBuffer没有对大文件进行测试,可能存在问题)

from lab_sound_flutter.

Related Issues (5)

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.