The Audio class is primarily designed for very simple playback scenarios, or for use with the Video class.
Definition
Members Table
The following table lists the members exposed by the object.
Events
| Event | Description |
|
Disposing
| Occurs when the Dispose method is called or when the object is finalized and collected by the garbage collector of the Microsoft .NET common language runtime. |
|
Ending
| Occurs when the playback is ending. |
|
Pausing
| Occurs when the playback is pausing. |
|
Starting
| Occurs when the playback is starting. |
|
Stopping
| Occurs when the playback is stopping. |
Methods
Properties
| Property | Description |
|
Balance
| Retrieves and sets the playback position in the stereo field. |
|
CurrentPosition
| Retrieves and sets the current position of playback. |
|
Disposed
| Retrieves a value that is true if the object is disposed; otherwise the value is false. |
|
Duration
| Retrieves the length, in seconds, of the audio file. |
|
Paused
| Retrieves the current playback state, whether playback is currently paused. |
|
Playing
| Retrieves the current playback state, whether playback is currently playing. |
|
SeekingCaps
| Retrieves the seeking capabilities of playback. |
|
State
| Retrieves the current state of playback. |
|
Stopped
| Retrieves the current playback state, whether playback is currently stopped. |
|
StopPosition
| Retrieves the position where playback stopped. |
|
Volume
| Retrieves and sets the amount to attenuate the volume of audio playback. |
Inheritance Hierarchy
Class Information
| Namespace | Microsoft.DirectX.AudioVideoPlayback |
| Assembly | Microsoft.DirectX.AudioVideoPlayback (microsoft.directx.audiovideoplayback.dll) |
| Strong Name | Microsoft.DirectX.AudioVideoPlayback,
Version=1.0.900.0,
Culture=neutral,
PublicKeyToken=d3231b57b74a1492 |