Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
qmus2mid.h
Package: 21.rar [view]
Upload User: xuyinpeng
Upload Date: 2021-05-12
Package Size: 455k
Code Size: 2k
Category:
Shot Game
Development Platform:
Visual C++
- #if !defined( QMUS2MID_H )
- #define QMUS2MID_H
- typedef unsigned short int2; /* a two-byte int, use short.*/
- typedef unsigned int int4; /* a four-byte int, use int unless int is
- 16 bits, then use long. Don't use long
- on an alpha. */
- #define NOTMUSFILE 1 /* Not a MUS file */
- #define COMUSFILE 2 /* Can't open MUS file */
- #define COTMPFILE 3 /* Can't open TMP file */
- #define CWMIDFILE 4 /* Can't write MID file */
- #define MUSFILECOR 5 /* MUS file corrupted */
- #define TOOMCHAN 6 /* Too many channels */
- #define MEMALLOC 7 /* Memory allocation error */
- /* some (old) compilers mistake the "MUSx1A" construct (interpreting
- it as "MUSx1A") */
- #define MUSMAGIC "MUS32" /* this seems to work */
- #define MIDIMAGIC "MThd000000060001"
- #define TRACKMAGIC1 "003770335"
- #define TRACKMAGIC2 "003775700"
- #define TRACKMAGIC3 "003770226"
- #define TRACKMAGIC4 "00377131020000"
- #define TRACKMAGIC5 "00377121031124332"
- #define TRACKMAGIC6 "003775700"
- typedef struct
- {
- char ID[4]; /* identifier "MUS" 0x1A */
- int2 ScoreLength;
- int2 ScoreStart;
- int2 channels; /* count of primary channels */
- int2 SecChannels; /* count of secondary channels (?) */
- int2 InstrCnt;
- int2 dummy;
- /* variable-length part starts here */
- int2 *instruments;
- } MUSheader;
- struct Track
- {
- unsigned long current;
- char vel;
- long DeltaTime;
- unsigned char LastEvent;
- char *data; /* Primary data */
- };
- int qmus2mid( const char *mus, const char *mid, int nodisplay,
- int2 division, int BufferSize, int nocomp );
- #endif