public clsPcm(int num , int seqNum , enmChipType chip , int chipNumber , string fileName , int freq , int vol , long stAdr , long edAdr , long size , long loopAdr , bool is16bit , int samplerate , params object[] option) { this.num = num; this.seqNum = seqNum; this.chip = chip; this.chipNumber = chipNumber; this.fileName = fileName; this.freq = freq; this.vol = vol; this.stAdr = stAdr; this.edAdr = edAdr; this.size = size; this.loopAdr = loopAdr; this.is16bit = is16bit; this.samplerate = samplerate; this.option = option; this.status = enmPCMSTATUS.NONE; }
public clsPcmDatSeq( enmPcmDefineType type , string FileName , enmChipType chip , int chipNumber , int SrcStartAdr , int DesStartAdr , int Length , object[] Option) { this.type = type; this.FileName = FileName; this.chip = chip; this.chipNumber = chipNumber; this.SrcStartAdr = SrcStartAdr; this.DesStartAdr = DesStartAdr; this.SrcLength = Length; this.Option = Option; if (chip == enmChipType.YM2610B) { if (Option != null) { this.DatLoopAdr = Option.ToString() == "0" ? 0 : 1; } else { this.DatLoopAdr = 0; } ; } }
public clsPcm(int num, enmChipType chip,bool isSecondary,string fileName, int freq, int vol , long stAdr, long edAdr, long size,long loopAdr) { this.num = num; this.chip = chip; this.isSecondary = isSecondary; this.fileName = fileName; this.freq = freq; this.vol = vol; this.stAdr = stAdr; this.edAdr = edAdr; this.size = size; this.loopAdr = loopAdr; }
public clsPcm(int num, int seqNum, enmChipType chip, bool isSecondary, string fileName, int freq, int vol, long stAdr, long edAdr, long size, long loopAdr) { this.num = num; this.seqNum = seqNum; this.chip = chip; this.isSecondary = isSecondary; this.fileName = fileName; this.freq = freq; this.vol = vol; this.stAdr = stAdr; this.edAdr = edAdr; this.size = size; this.loopAdr = loopAdr; }
public clsPcmDatSeq( enmPcmDefineType type , int No , string FileName , int BaseFreq , int Volume , enmChipType chip , int chipNumber , int LoopAdr) { this.type = type; this.No = No; this.FileName = FileName; this.BaseFreq = BaseFreq; this.Volume = Volume; this.chip = chip; this.chipNumber = chipNumber; this.DatLoopAdr = LoopAdr; }
public clsPcmDatSeq( enmPcmDefineType type , int No , string FileName , int BaseFreq , int Volume , enmChipType chip , bool isSecondary , int LoopAdr) { this.type = type; this.No = No; this.FileName = FileName; this.BaseFreq = BaseFreq; this.Volume = Volume; this.chip = chip; this.isSecondary = isSecondary; this.DatLoopAdr = LoopAdr; }
public clsPcmDatSeq( enmPcmDefineType type , int No , enmChipType chip , int chipNumber , int BaseFreq , int DatStartAdr , int DatEndAdr , int DatLoopAdr , object[] Option) { this.type = type; this.No = No; this.chip = chip; this.chipNumber = chipNumber; this.BaseFreq = BaseFreq; this.DatStartAdr = DatStartAdr; this.DatEndAdr = DatEndAdr; this.DatLoopAdr = DatLoopAdr; this.Option = Option; }
private static bool canUsePCM(enmChipType chipNumber) { bool use = false; switch (chipNumber) { case enmChipType.YM2610B: case enmChipType.YM2612: case enmChipType.RF5C164: use = true; break; case enmChipType.SN76489: default: use = false; break; } return use; }