Component representing a secondary buffer that can be used for streaming. The buffer raises events when it reaches its half-way mark, as well as its end.
Esempio n. 1
0
 private void InitBuffer()
 {
     OnBufferInitializing();
     if (ERSB == null)
     {
         ERSB = new EventRaisingSoundBuffer(Device, WaveFormat, BufferLength);
         ERSB.BufferNotification += new BufferNotificationEventHandler(OnBufferNotification);
     }
     else
     {
         ERSB.WaveFormat   = WaveFormat;
         ERSB.BufferLength = BufferLength;
     }
     OnBufferInitialized();
 }
Esempio n. 2
0
 private void InitBuffer()
 {
     OnBufferInitializing();
     if (ERSB == null)
     {
         ERSB = new EventRaisingSoundBuffer(Device, WaveFormat, BufferLength);
         ERSB.BufferNotification += new BufferNotificationEventHandler(OnBufferNotification);
     }
     else
     {
         ERSB.WaveFormat = WaveFormat;
         ERSB.BufferLength = BufferLength;
     }
     OnBufferInitialized();
 }