Beispiel #1
0
        public void Visit(SoundBankFile file)
        {
            // Raise the FoundSoundBankFile event
            SoundFileEventArgs <SoundBankFile> args = new SoundFileEventArgs <SoundBankFile>(file, _currentEvent);

            OnFoundSoundBankFile(args);
        }
Beispiel #2
0
        public void Dispose()
        {
            // We keep the Stream object open to play the file so lets dispose it.
            if (_file != null)
            {
                _file.Dispose();
                _file = null;
            }

            AudioWaves.Clear();
            AudioWaves = null;
        }
Beispiel #3
0
 public void Open(Stream stream)
 {
     _file = new SoundBankFile();
     _file.Open(stream);
     BuildAudioBlocks();
 }
Beispiel #4
0
 public void Open(string filename)
 {
     _file = new SoundBankFile();
     _file.Open(filename);
     BuildAudioBlocks();
 }