Giter Club home page Giter Club logo

Comments (7)

nalquas avatar nalquas commented on June 2, 2024 1

Ah, I didn't know the code under the abort goto label was supposed to be run even when successful.

I've changed the code in a way that allows that code to run (including ww_finish), but that made the crash reappear. I think that crash happens because the file is closed inside of ww_finish (fclose(ww->file);) AND after export_wav returns (if(export_wav(&mused.song, mused.mus.cyd->wavetable_entries, f, -1)) fclose(f);).

I'll make some modifications and see if that's the issue.

from klystrack.

nalquas avatar nalquas commented on June 2, 2024 1

@farvardin I can confirm the issue you wrote about, Audacity seems to think files exported with the latest master are empty.

The fix I just pull-requested seems to make Audacity see the file content again, at least on my machine.

from klystrack.

kometbomb avatar kometbomb commented on June 2, 2024

It probably doesn't update the header with the correct data size. I did check with Audacity back when I added the feature so need to check what's happening as I don't think there are any changes since that version.

from klystrack.

kometbomb avatar kometbomb commented on June 2, 2024

There of course is a change in 99635da. Successful exports do not call ww_finish so the header is not updated with the sizes and they remain zero. export.c:132 exits the function and only the abort branch will wrap up the wave write.

Hey, @nalquas, is this something that you checked that would cause the crash you fixed - if w_finish is called in both cases (it of course should be called as above)?

from klystrack.

kometbomb avatar kometbomb commented on June 2, 2024

Can you check if it now works as expected?

from klystrack.

farvardin avatar farvardin commented on June 2, 2024

@kometbomb @nalquas Yes, I've compiled klystrack with the latest commit, and I can confirm that it's working correctly now, both in audacity and with the flac converter, the wav is ok now!

Thank you for the quick fix!

from klystrack.

kometbomb avatar kometbomb commented on June 2, 2024

from klystrack.

Related Issues (20)

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.