Reads an audio data from the headerless stream. Slinear, Gsm, A-law, mu-law etc.
For a list of all members of this type, see RawReader Members.
System.Object
BinaryReader
AudioReader
RawReader
RawReadWriter
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
This example shows simple using of RawReader.
WaveFormat wfAlaw = new WaveFormat();
wfAlaw.wFormatTag = AudioCompressionManager.ALawFormatTag;
wfAlaw.nChannels = 1;
wfAlaw.nSamplesPerSec = 8000;
FormatDetails[] fdArr = AudioCompressionManager.GetFormatList(wfAlaw);
RawReader rr = new RawReader(File.OpenRead("123.alaw"),
fdArr[0].FormatHandle);
IntPtr format = rr.ReadFormat();
byte[] data = rr.ReadData();
rr.Close();
Namespace: Alvas.Audio
Assembly: Alvas.Audio (in Alvas.Audio.dll)
RawReader Members | Alvas.Audio Namespace