/// <summary> /// /// </summary> /// <param name="ChipID"></param> /// <param name="clock"></param> /// <param name="FMClockValue"></param> /// <param name="option">リズム音ファイルのパス(終端に\をつけること)</param> /// <returns></returns> public override uint Start(byte ChipID, uint clock, uint FMClockValue, params object[] option) { chip[ChipID] = new fmgen.OPNA(ChipID); //chip[ChipID] = new fmgen.OPNA2(); if (option != null && option.Length > 0) { if (option.Length > 1 && option[1] is List <byte[]> ) { chip[ChipID].presetRhythmPCMData = (List <byte[]>)option[1]; } if (option[0] is Func <string, Stream> ) { chip[ChipID].Init(FMClockValue, clock, false, (Func <string, Stream>)option[0]); } else if (option[0] is string) { chip[ChipID].Init(FMClockValue, clock, false, (string)option[0]); } } else { chip[ChipID].Init(FMClockValue, clock); } return(clock); }
public override uint Start(byte ChipID, uint clock, uint FMClockValue, params object[] option) { chip[ChipID] = new fmgen.OPNA(); //chip[ChipID] = new fmgen.OPNA2(); chip[ChipID].Init(FMClockValue, clock); return(clock); }
public override uint Start(byte ChipID, uint clock) { chip[ChipID] = new fmgen.OPNA(); //chip[ChipID] = new fmgen.OPNA2(); chip[ChipID].Init(DefaultYM2608ClockValue, clock); return(clock); }
/// <summary> /// /// </summary> /// <param name="ChipID"></param> /// <param name="clock"></param> /// <param name="FMClockValue"></param> /// <param name="option">リズム音ファイルのパス(終端に\をつけること)</param> /// <returns></returns> public override uint Start(byte ChipID, uint clock, uint FMClockValue, params object[] option) { chip[ChipID] = new fmgen.OPNA(); //chip[ChipID] = new fmgen.OPNA2(); if (option != null && option.Length > 0 && option[0] is Func <string, Stream> ) { chip[ChipID].Init(FMClockValue, clock, false, (Func <string, Stream>)option[0]); } else { chip[ChipID].Init(FMClockValue, clock); } return(clock); }