Click or drag to resize
Player Class
Player is a component for audio files playing.
Inheritance Hierarchy

Namespace: Alvas.Audio
Assembly: Alvas.Audio (in Alvas.Audio.dll) Version: 2016.0.6173.41573
Syntax
public class Player : Component

The Player type exposes the following members.

Constructors
  NameDescription
Public methodPlayer
Initializes a new instance of the Player class
Top
Methods
  NameDescription
Public methodChangePosition
Changes the current position in milliseconds.
Public methodClose
To close playing.
Public methodCloseAudioDevices
Closes all audio devices.
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodDispose
Releases all resources used by the Component.
(Inherited from Component.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodStatic memberGetErrorString
Returns string that describes the specified error code.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodPause
To pause playing.
Public methodPlay
Plays sound.
Public methodCode examplePlay(Byte)
Plays Wave file data from array
Public methodResume
Resumes playing that has been paused.
Public methodStop
To stop playing.
Public methodToString
Returns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component.)
Top
Properties
  NameDescription
Public propertyContainer
Gets the IContainer that contains the Component.
(Inherited from Component.)
Public propertyDeviceName
Gets the current device name being used to play.
Public propertyDurationInMS
Gets audio file duration in milliseconds.
Public propertyFileName
Gets or sets file name for playing.
Public propertyIsPlaying
Returns true if playing or false otherwise.
Public propertyLeftVolume
Gets or sets the average volume to the left speaker.
Public propertyPositionInMS
Gets the current position in milliseconds.
Public propertyRightVolume
Gets or sets the average volume to the right speaker.
Public propertySite
Gets or sets the ISite of the Component.
(Inherited from Component.)
Public propertySpeed
Gets or Sets the current speed of the device in frames per second.
Public propertyStatus
Gets current device status.
Public propertyVolume
Gets or sets the average volume to the left and right speaker.
Top
Events
  NameDescription
Public eventDisposed
Occurs when the component is disposed by a call to the Dispose method.
(Inherited from Component.)
Top
Examples
This example shows how simple use Player.
player.FileName = "123.mp3";
player.Play();
See Also