Свойство | Type | Description | |
---|---|---|---|
Device | Device | ||
NotificationEvent |
Méthode | Description | |
---|---|---|
EventRaisingSoundBuffer ( Device device, WaveFormat waveFormat, System.TimeSpan bufferLength ) : System | ||
Play ( ) : void | ||
Stop ( ) : void |
Méthode | Description | |
---|---|---|
InitSecondaryBuffer ( ) : void |
Initialize the SecondaryBuffer and Notify instances.
|
Méthode | Description | |
---|---|---|
GetBytesByRaisingEvent ( int locationInSecondaryBuffer, int numBytesToAcquire, |
||
HandleNewBytesInControlThread ( int nextPlaceForBytes, int byteWindowSize, |
||
StreamControlThread ( ) : void |
The stream control thread raises events every half the stream. When the BufferNotificationEventArgs contains a SoundFinished property set to true, the current buffer segment is padded with silence. At the next notification, the next buffer segment is filled with silence, and no event is raised. At the next notification, which will come when the padded segment (not the completely silent segment) is finished, the SecondaryBuffer is stopped and the thread terminated.
|
public EventRaisingSoundBuffer ( Device device, WaveFormat waveFormat, System.TimeSpan bufferLength ) : System | ||
device | Device | |
waveFormat | WaveFormat | |
bufferLength | System.TimeSpan | |
Résultat | System |