Skip to content

Conversation

@igorkorsukov
Copy link
Contributor

I fixed this issue by another method #6531
But not working with MSVC build.

Possible, need use _get_osfhandle (https://stackoverflow.com/questions/50191480/how-to-get-a-windows-handle-from-a-qfile-or-qsavefile-for-reopenfile)
But I had the app crash.

So, now I implemented this solution - working (tested on MSVC build)

sf = sf_open_fd(file.handle(), SFM_WRITE, &info, false);
sf = sf_wchar_open(wpath, SFM_WRITE, &info);
#else // Q_OS_WIN
sf = sf_open(qPrintable(filename);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

closing paren missing!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

closing paren missing!

fixed

@igorkorsukov igorkorsukov force-pushed the mu3/ci/winoggflac branch 2 times, most recently from a1029b2 to 363c3cb Compare October 13, 2020 13:27
@igorkorsukov igorkorsukov changed the title [MU3] Fixed export audio on Windows [MU3] fix #311621: fixed export audio on Windows Oct 13, 2020
@igorkorsukov
Copy link
Contributor Author

Probably should mention #311621

Thanks, added

@Jojo-Schmitz
Copy link
Contributor

Jojo-Schmitz commented Oct 13, 2020

I've tried out the (Windows 64bit, the 32bit one seems pretty empty) artifact and it does solve the issue, it doeseacport to .flac, .ogg and .wav

@igorkorsukov
Copy link
Contributor Author

I've tried out the (Windows 64bit, the 32bit one seems pretty empty) artifact and it does solve the issue, it doeseacport to .flac, .ogg and .wav

Greate! Thank you!
(32bit build disabled for pull requests, see steps https://github.com/musescore/MuseScore/pull/6665/checks?check_run_id=1247986069)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants