Property | Type | Description | |
---|---|---|---|
DSDEVID_DefaultCapture | System.Guid | ||
DSDEVID_DefaultPlayback | System.Guid | ||
DSDEVID_DefaultVoiceCapture | System.Guid | ||
DSDEVID_DefaultVoicePlayback | System.Guid |
Method | Description | |
---|---|---|
DirectSoundOut ( ) : System |
Initializes a new instance of the DirectSoundOut class.
|
|
DirectSoundOut ( System.Guid device ) : System |
Initializes a new instance of the DirectSoundOut class.
|
|
DirectSoundOut ( System.Guid device, int latency ) : System |
Initializes a new instance of the DirectSoundOut class. (40ms seems to work under Vista).
|
|
DirectSoundOut ( int latency ) : System |
Initializes a new instance of the DirectSoundOut class.
|
|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
|
GetPosition ( ) : long |
Gets the current position in bytes from the wave output device. (n.b. this is not the same thing as the position within your reader stream)
|
|
Init ( IWaveProvider waveProvider ) : void |
Initialise playback
|
|
Pause ( ) : void |
Pause Playback
|
|
Play ( ) : void |
Begin playback
|
|
Stop ( ) : void |
Stop playback
|
Method | Description | |
---|---|---|
DirectSoundCreate ( System.Guid &GUID, [ directSound, |
||
DirectSoundEnumerate ( DSEnumCallback lpDSEnumCallback, |
||
EnumCallback ( |
||
Feed ( int bytesToCopy ) : int |
Feeds the SecondaryBuffer with the WaveStream
|
|
GetDesktopWindow ( ) : |
||
InitializeDirectSound ( ) : void | ||
IsBufferLost ( ) : bool |
Determines whether the SecondaryBuffer is lost.
|
|
MsToBytes ( int ms ) : int |
Convert ms to bytes size according to WaveFormat
|
|
PlaybackThreadFunc ( ) : void |
Processes the samples in a separate thread.
|
|
RaisePlaybackStopped ( |
||
StopPlayback ( ) : void |
Stop playback
|
public DirectSoundOut ( System.Guid device ) : System | ||
device | System.Guid | |
return | System |
public DirectSoundOut ( System.Guid device, int latency ) : System | ||
device | System.Guid | Selected device |
latency | int | The latency. |
return | System |
public DirectSoundOut ( int latency ) : System | ||
latency | int | |
return | System |
public Init ( IWaveProvider waveProvider ) : void | ||
waveProvider | IWaveProvider | The waveprovider to be played |
return | void |
public static Guid,System DSDEVID_DefaultCapture | ||
return | System.Guid |
public static Guid,System DSDEVID_DefaultPlayback | ||
return | System.Guid |
public static Guid,System DSDEVID_DefaultVoiceCapture | ||
return | System.Guid |