| CdReader Class |
Namespace: Alvas.Audio
The CdReader type exposes the following members.
| Name | Description | |
|---|---|---|
| Close |
Closes the CdReader 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.) |
| Name | Description | |
|---|---|---|
| HasAudio |
Indicates whether the stream contains audio data.
| |
| Track |
Returns track number. 0 based - first track is at 0
|
CdDrive cda = new CdDrive(); CdReader cr = cda.GetReader(0); if (cr.HasAudio) { IntPtr format = cr.ReadFormat(); byte[] data = cr.ReadData(); } cr.Close();