#include #include #include #include MUSFile::MUSFile(String musPathFileName) : mMusFile(musPathFileName), mlpMUSInstruments(0), mhGlobalMUSInstruments(0), mIsOkay(FALSE), mPitchBenderValue(0), mTempoValue(0) { String musIDString("MUS"); if(!mMusFile.isOkay())return; if(!readHeader(mMusFile))return; if(!(musIDString==headerID()))return; if(!instruments())return; mhGlobalMUSInstruments=::GlobalAlloc(GMEM_FIXED,instruments()*sizeof(WORD)); mlpMUSInstruments=(WORD FAR *)::GlobalLock(mhGlobalMUSInstruments); for(int index=0;index