Свойство | Тип | Описание | |
---|---|---|---|
Device | Device | ||
NotificationEvent |
Метод | Описание | |
---|---|---|
EventRaisingSoundBuffer ( Device device, WaveFormat waveFormat, System.TimeSpan bufferLength ) : System | ||
Play ( ) : void | ||
Stop ( ) : void |
Метод | Описание | |
---|---|---|
InitSecondaryBuffer ( ) : void |
Initialize the SecondaryBuffer and Notify instances.
|
Метод | Описание | |
---|---|---|
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 | |
Результат | System |