Ejemplo n.º 1
0
        public void TestWaveFile()
        {
            Lin.Core.Utils.WaveFile waveFile = new Lin.Core.Utils.WaveFile(@"..\..\..\Test\Core\Utils\1.wav");
            waveFile.Read();
            Console.WriteLine("length:" + waveFile.m_Data.NumSamples);

            for (int n = 0; n < 10; n++)
            {
                Console.Write(waveFile.m_Data[n] + "\t");
            }
        }
Ejemplo n.º 2
0
 public void TestWav()
 {
     Lin.Core.Utils.WaveFile wave = new Lin.Core.Utils.WaveFile(@"..\..\..\Test\Core\1.wav");
     wave.Read();
     Console.WriteLine("sample:" + wave.m_Fmt.SamplesPerSec);
     Console.WriteLine("data size:" + wave.m_Data.DataSize);
     for (int n = 0; n < 100; n++)
     {
         Console.Write(wave.m_Data[n] + "\t");
     }
 }