| 1 |
// Emacs style mode select -*- C -*- |
| 2 |
//----------------------------------------------------------------------------- |
| 3 |
// |
| 4 |
// Copyright(C) 1993-1996 Id Software, Inc. |
| 5 |
// Copyright(C) 2005 Simon Howard |
| 6 |
// Copyright(C) 2006 Ben Ryves 2006 |
| 7 |
// |
| 8 |
// This program is free software; you can redistribute it and/or |
| 9 |
// modify it under the terms of the GNU General Public License |
| 10 |
// as published by the Free Software Foundation; either version 2 |
| 11 |
// of the License, or (at your option) any later version. |
| 12 |
// |
| 13 |
// This program is distributed in the hope that it will be useful, |
| 14 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 |
// GNU General Public License for more details. |
| 17 |
// |
| 18 |
// You should have received a copy of the GNU General Public License |
| 19 |
// along with this program; if not, write to the Free Software |
| 20 |
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 21 |
// 02111-1307, USA. |
| 22 |
// |
| 23 |
// |
| 24 |
// mus2mid.h - Ben Ryves 2006 - http://benryves.com - [email protected] |
| 25 |
// Use to convert a MUS file into a single track, type 0 MIDI file. |
| 26 |
|
| 27 |
// e6y |
| 28 |
// All tabs are replaced with spaces. |
| 29 |
// Fixed eol style of files. |
| 30 |
|
| 31 |
#ifndef MUS2MID_H |
| 32 |
#define MUS2MID_H |
| 33 |
|
| 34 |
#include "doomtype.h" |
| 35 |
#include "memio.h" |
| 36 |
|
| 37 |
// Structure to hold MUS file header |
| 38 |
typedef struct |
| 39 |
{ |
| 40 |
byte id[4]; |
| 41 |
unsigned short scorelength; |
| 42 |
unsigned short scorestart; |
| 43 |
unsigned short primarychannels; |
| 44 |
unsigned short secondarychannels; |
| 45 |
unsigned short instrumentcount; |
| 46 |
} musheader; |
| 47 |
|
| 48 |
dboolean mus2mid(MEMFILE *musinput, MEMFILE *midioutput); |
| 49 |
|
| 50 |
#endif /* #ifndef MUS2MID_H */ |