ClintHeyer.Media
Class MediaFile

Constructor Summary
MediaFile()
        Initializes a new instance of the MediaFile class.

Property Summary
int AudioBitrate
         Gets the audio bitrate in kilobits per second (kbps)
System.TimeSpan Duration
         Same as Length, but returns as a TimeSpan
float Length
         Gets the run-length of the file (in seconds)

Method Summary
System.IO.Stream GetFile(string filename)
void IgnoreBytes(System.IO.Stream stream, int count)
int ReadInt(System.IO.Stream stream)
short ReadShort(System.IO.Stream stream)

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString


Constructor Detail

MediaFile

protected MediaFile()

Initializes a new instance of the MediaFile class.

Property Detail

AudioBitrate

public int AudioBitrate

Gets the audio bitrate in kilobits per second (kbps)


Duration

public System.TimeSpan Duration

Same as Length, but returns as a TimeSpan


Length

public float Length

Gets the run-length of the file (in seconds)

Method Detail

GetFile

protected System.IO.Stream GetFile(string filename)


IgnoreBytes

protected void IgnoreBytes(System.IO.Stream stream,
                           int count)


ReadInt

protected int ReadInt(System.IO.Stream stream)


ReadShort

protected short ReadShort(System.IO.Stream stream)