- open MIDI wave output as binary file

https://forum.zdoom.org/viewtopic.php?t=72161
This commit is contained in:
alexey.lysiuk 2021-05-05 11:18:31 +03:00
parent e79fdcef2c
commit 0c2ac8cbf3

View file

@ -86,7 +86,7 @@ struct FmtChunk
MIDIWaveWriter::MIDIWaveWriter(const char *filename, SoftSynthMIDIDevice *playdevice) MIDIWaveWriter::MIDIWaveWriter(const char *filename, SoftSynthMIDIDevice *playdevice)
: SoftSynthMIDIDevice(playdevice->GetSampleRate()) : SoftSynthMIDIDevice(playdevice->GetSampleRate())
{ {
File = MusicIO::utf8_fopen(filename, "wt"); File = MusicIO::utf8_fopen(filename, "wb");
playDevice = playdevice; playDevice = playdevice;
if (File != nullptr) if (File != nullptr)
{ // Write wave header { // Write wave header