예제 #1
0
 public void Read(int Startms, int Endms)
 {
     m_Riff = new RiffBlock();
     m_Fmt  = new FmtBlock();
     m_Data = new DataBlock();
     m_Riff.ReadRiff(m_FileStream);
     m_Fmt.ReadFmt(m_FileStream);
     m_Data.ReadData(m_FileStream, Startms, Endms, m_Fmt.SamplesPerSec);
 }
예제 #2
0
 public void Read(int LastLengthms)
 {
     m_Riff = new RiffBlock();
     m_Fmt  = new FmtBlock();
     m_Data = new DataBlock();
     m_Riff.ReadRiff(m_FileStream);
     m_Fmt.ReadFmt(m_FileStream);
     m_Data.ReadData(m_FileStream, LastLengthms, m_Fmt.SamplesPerSec);
 }
예제 #3
0
 public void Read()
 {
     m_Riff = new RiffBlock();
     m_Fmt  = new FmtBlock();
     m_Data = new DataBlock();
     m_Riff.ReadRiff(m_FileStream);
     m_Fmt.ReadFmt(m_FileStream);
     m_Data.ReadData(m_FileStream);
 }
예제 #4
0
        public WaveFile(String inFilepath)
        {
            m_Filepath   = inFilepath;
            m_FileInfo   = new FileInfo(inFilepath);
            m_FileStream = m_FileInfo.OpenRead( );

            m_Riff = new RiffBlock( );
            m_Fmt  = new FmtBlock( );
            m_Data = new DataBlock( );
        }
예제 #5
0
        public WaveFile(string inFilepath, MemoryStream waveStream)
        {
            m_Filepath   = inFilepath;
            m_FileInfo   = new FileInfo(inFilepath);
            m_FileStream = waveStream;

            m_Riff = new RiffBlock();
            m_Fmt  = new FmtBlock();
            m_Data = new DataBlock();
        }
예제 #6
0
        public WaveFile( String inFilepath )
        {
            m_Filepath = inFilepath;
            m_FileInfo = new FileInfo( inFilepath );
            m_FileStream = m_FileInfo.OpenRead( );

            m_Riff = new RiffBlock( );
            m_Fmt = new FmtBlock( );
            m_Data = new DataBlock( );
        }
예제 #7
0
        /// <summary>
        /// Initializes a new instance of the <see cref="T:NoobAudioLib.WaveHeaderCheck"/> class.
        /// </summary>
        /// <param name="inFilepath">In filepath.</param>
        /// <param name="bitsPerSample">An array of the allowed bits per sample</param>
        /// <param name="channels">An array of the allowed channels.</param>
        /// <param name="audioFormat">An array of the allowed audio format.</param>
        public WaveHeaderCheck(string inFilepath, string[] bitsPerSample = null, string[] channels = null, string[] audioFormat = null)
        {
            m_Filepath   = inFilepath;
            m_FileInfo   = new FileInfo(inFilepath);
            m_FileStream = IOOps.ReadToMemoryStream(inFilepath);

            m_Riff = new RiffBlock();
            m_Fmt  = new FmtBlock();

            Read();

            Verify(bitsPerSample, channels, audioFormat);
        }