- patch from Volker Ruppert <Volker.Ruppert@t-online.de>, who writes:

> I have inspected the header of output file and several sample MIDI files. I
  > have found two different bytes in the header. After I have changed this
  > bytes Winamp could play the output file, but it showed a track time of
  > 0:00. The Windows Media Player still doesn't like the file.
This commit is contained in:
Bryce Denney 2001-09-15 13:33:16 +00:00
parent 935f75b337
commit 1006cb2c6b

View File

@ -2537,11 +2537,11 @@ void bx_sb16_c::initmidifile()
Bit16u timecode; // 0x80 + deltatimesperquarter << 8
} midiheader =
#ifdef BX_LITTLE_ENDIAN
{ "MTh", 0x06000000, 0x0100, 0x0100, 0x8001 };
{ "MTh", 0x06000000, 0, 0x0100, 0x8001 };
#else
{ "MTh", 6, 1, 1, 0x180 };
{ "MTh", 6, 0, 1, 0x180 };
#endif
midiheader.chunk[3] = 'k';
midiheader.chunk[3] = 'd';
struct {
Bit8u chunk[4];