From 0c2ac8cbf3b6a36b8a1d1b06e88d45d3285e02d2 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Wed, 5 May 2021 11:18:31 +0300 Subject: [PATCH] - open MIDI wave output as binary file https://forum.zdoom.org/viewtopic.php?t=72161 --- source/mididevices/music_wavewriter_mididevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/mididevices/music_wavewriter_mididevice.cpp b/source/mididevices/music_wavewriter_mididevice.cpp index 50bbd53..f8bf94e 100644 --- a/source/mididevices/music_wavewriter_mididevice.cpp +++ b/source/mididevices/music_wavewriter_mididevice.cpp @@ -86,7 +86,7 @@ struct FmtChunk MIDIWaveWriter::MIDIWaveWriter(const char *filename, SoftSynthMIDIDevice *playdevice) : SoftSynthMIDIDevice(playdevice->GetSampleRate()) { - File = MusicIO::utf8_fopen(filename, "wt"); + File = MusicIO::utf8_fopen(filename, "wb"); playDevice = playdevice; if (File != nullptr) { // Write wave header