示例#1
0
        /// <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);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }
示例#4
0
        /// <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);
        }