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); }
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); }
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); }
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( ); }
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(); }
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( ); }
/// <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); }