Player Class |
Namespace: Alvas.Audio
The Player type exposes the following members.
Name | Description | |
---|---|---|
![]() | ChangePosition |
Changes the current position in milliseconds.
|
![]() | Close |
To close playing.
|
![]() | CloseAudioDevices |
Closes all audio devices.
|
![]() | CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
![]() | Dispose | Releases all resources used by the Component. (Inherited from Component.) |
![]() | Equals | (Inherited from Object.) |
![]() ![]() | GetErrorString |
Returns string that describes the specified error code.
|
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() | Pause |
To pause playing.
|
![]() | Play |
Plays sound.
|
![]() ![]() | Play(Byte) |
Plays Wave file data from array
|
![]() | Resume |
Resumes playing that has been paused.
|
![]() | Stop |
To stop playing.
|
![]() | ToString | Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.) |
Name | Description | |
---|---|---|
![]() | Container | Gets the IContainer that contains the Component. (Inherited from Component.) |
![]() | DeviceName |
Gets the current device name being used to play.
|
![]() | DurationInMS |
Gets audio file duration in milliseconds.
|
![]() | FileName |
Gets or sets file name for playing.
|
![]() | IsPlaying |
Returns true if playing or false otherwise.
|
![]() | LeftVolume |
Gets or sets the average volume to the left speaker.
|
![]() | PositionInMS |
Gets the current position in milliseconds.
|
![]() | RightVolume |
Gets or sets the average volume to the right speaker.
|
![]() | Site | (Inherited from Component.) |
![]() | Speed |
Gets or Sets the current speed of the device in frames per second.
|
![]() | Status |
Gets current device status.
|
![]() | Volume |
Gets or sets the average volume to the left and right speaker.
|
Name | Description | |
---|---|---|
![]() | Disposed | Occurs when the component is disposed by a call to the Dispose method. (Inherited from Component.) |
player.FileName = "123.mp3";
player.Play();