Comments (7)
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.
@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.
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.
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.
Can you check if it now works as expected?
from klystrack.
@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.
from klystrack.
Related Issues (20)
- Addition of modifier for transposing in octaves
- Rendering to texture causes flashing HOT 2
- tar.gz issue HOT 2
- compile failed with today's git head master HOT 2
- gitcheck out build HOT 2
- Snap in Ubuntu 19.10 not working HOT 9
- Double free crash when exporting to wav HOT 3
- Keyboard layout ignored in instrument editor HOT 1
- klystrack: ftbfs with GCC-10 HOT 1
- Issue building klystrack on Linux HOT 6
- Minor enhancements (or my personal QoL nitpicks, sorry)
- klystrack is now available on FreeBSD
- *.kt file association issues with Windows
- On Linux, with 1000 Hz mouse, klystrack lags when moving mouse around menu HOT 9
- klystrack OSX build quits unexpectedly
- Klystrack snap can't create dotfiles
- Klystrack not recognising themes HOT 6
- Please release 1.7.7 HOT 6
- Crashes with Segmentation Fault, but not when built with debugging options. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from klystrack.