Exemple #1
0
 public void RemoveEqualizer(Equalizer equalizer)
 {
     equalizers.Remove(equalizer);
     equalizer_container_record.Remove(equalizer.EqualizerRecord);
 }
Exemple #2
0
 public void RemoveEqualizer(Equalizer equalizer)
 {
     equalizers.Remove (equalizer);
     equalizer_container_record.Remove (equalizer.EqualizerRecord);
 }
Exemple #3
0
        private void LoadEqualizers()
        {
            equalizers = new List<Equalizer> ();
            equalizer_container_record = new EqualizerContainerRecord ();

            if (!File.Exists (EqualizerDatabasePath)) {
                return;
            }

            using (BinaryReader reader = new BinaryReader (File.Open (EqualizerDatabasePath, FileMode.Open))) {
                equalizer_container_record.Read (reader);

                foreach (EqualizerRecord eqrec in equalizer_container_record.EqualizerRecords) {
                    Equalizer eq = new Equalizer (eqrec);
                    equalizers.Add (eq);
                }
            }
        }
Exemple #4
0
        public Equalizer CreateEqualizer()
        {
            if (equalizers == null) {
                LoadEqualizers ();
            }

            EqualizerRecord record = new EqualizerRecord ();
            Equalizer equalizer = new Equalizer (record);

            equalizer_container_record.Add (record);
            equalizers.Add (equalizer);

            return equalizer;
        }