DsReader Class |
Namespace: Alvas.Audio
The DsReader type exposes the following members.
Name | Description | |
---|---|---|
![]() | DsReader |
Initializes a new instance of the DsReader class for the specified file.
|
Name | Description | |
---|---|---|
![]() | Close |
Closes the DsReader object and releases any system resources associated with the reader.
|
![]() | Dispose |
Closes the DsReader object and releases any system resources associated with the reader.
|
![]() | Equals | (Inherited from Object.) |
![]() | GetDurationInMS |
Gets audio stream duration in milliseconds.
|
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetLengthInBytes |
Gets audio stream length in bytes.
|
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | Milliseconds2Bytes |
Converts from milliseconds to bytes for current stream.
|
![]() | ReadData |
Reads all audio data from the stream.
|
![]() | ReadData(Int32) |
Reads audio data from the stream.
|
![]() | ReadData(Int32, Int32) |
Reads audio data from the stream.
|
![]() | ReadDataInBytes(Int32) |
Reads audio data from the stream.
|
![]() | ReadDataInBytes(Int32, Int32) |
Reads audio data from the stream.
|
![]() | ReadFormat |
Reads an audio format.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
DsReader dr = new DsReader("in.wma"); if (dr.HasAudio) { IntPtr format = dr.ReadFormat(); byte[] data = dr.ReadData(); } dr.Close();