Exemplo n.º 1
0
 public void unpackWav(string file)
 {
     Directory.CreateDirectory(file);
     for (int i = 0; i < amtaData.Count; i++)
     {
         if (audioIdntr[i] == ".bfwav")
         {
             FileStream   f      = File.Create(file + "/" + strgList[i].name + ".wav");
             BCFstmReader reader = new BCFstmReader();
             WaveWriter   writer = new WaveWriter();
             VGAudio.Formats.AudioData convertedWav = reader.Read(audioData[i]);
             writer.WriteToStream(convertedWav, f);
             f.Close();
         }
     }
 }
Exemplo n.º 2
0
 public Stream unpackWavStream(string file)
 {
     for (int i = 0; i < amtaData.Count; i++)
     {
         if ((audioIdntr[i] == ".bfwav" || audioIdntr[i] == ".bfstp" || audioIdntr[i] == ".bfstm") && strgList[i].name == file)
         {
             Stream       f      = new MemoryStream();
             BCFstmReader reader = new BCFstmReader();
             WaveWriter   writer = new WaveWriter();
             VGAudio.Formats.AudioData convertedWav = reader.Read(audioData[i]);
             writer.WriteToStream(convertedWav, f);
             return(f);
         }
     }
     return(null);
 }
Exemplo n.º 3
0
            public AudioData GetAudioData()
            {
                BCFstmReader reader = new BCFstmReader();

                return(reader.Read(Data));
            }