Replaces X11/MIT-SHM video and Linux OSS audio with SDL2, and plays MIDI music through AudioToolbox MusicSequence/MusicPlayer (system DLS synth, no soundfont needed). MUS lumps are converted by a new mus2mid; already-MIDI lumps pass through. Also includes the 64-bit portability fixes needed to run on modern clang/LP64: pointer-size casts and struct layouts in the renderer, savegame code, zone allocator and config defaults, plus removal of obsolete headers and unsequenced-modification UB.
21 lines
607 B
C++
21 lines
607 B
C++
// Emacs style mode select -*- C++ -*-
|
|
//-----------------------------------------------------------------------------
|
|
//
|
|
// mus2mid - convert DOOM MUS music lumps to standard MIDI.
|
|
//
|
|
// MUS lumps have no embedded length beyond their header fields,
|
|
// so only the data pointer is needed.
|
|
//
|
|
//-----------------------------------------------------------------------------
|
|
|
|
#ifndef __MUS2MID__
|
|
#define __MUS2MID__
|
|
|
|
#include "doomtype.h"
|
|
|
|
// Converts a MUS lump to a malloc()'d MIDI byte stream.
|
|
// Returns the stream length, or -1 on malformed input.
|
|
int mus2mid (byte* musdata, byte** mid_out);
|
|
|
|
#endif
|