Beispiel #1
0
        public void LoadRom(Stream stream, string filename, string name)
        {
            dx7_bank bank = new dx7_bank();

            bank.dx7_patchbank_load(stream, filename, name.ToUpper());
            _banks.Add(bank);
            Cache();
        }
Beispiel #2
0
        private void LoadFactoryRom(string romName)
        {
            Assembly assembly     = Assembly.GetExecutingAssembly();
            string   resourceName = string.Format("Sixport.Roms.{0}.syx", romName);
            Stream   stream       = assembly.GetManifestResourceStream(resourceName);
            dx7_bank bank         = new dx7_bank();

            bank.dx7_patchbank_load(stream, romName + ".syx", romName.ToUpper());
            stream.Close();
            stream.Dispose();
            _banks.Add(bank);
        }