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.
示例#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();
 }
示例#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();
 }