C# 클래스 Mp3Sharp.EventRaisingSoundBuffer

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.
파일 보기 프로젝트 열기: RHY3756547/FreeSO 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
Device Device
NotificationEvent System.Threading.AutoResetEvent

공개 메소드들

메소드 설명
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, BufferNotificationEventArgs e ) : void
HandleNewBytesInControlThread ( int nextPlaceForBytes, int byteWindowSize, BufferNotificationEventArgs ea ) : NextNotificationTask
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.

메소드 상세

EventRaisingSoundBuffer() 공개 메소드

public EventRaisingSoundBuffer ( Device device, WaveFormat waveFormat, System.TimeSpan bufferLength ) : System
device Device
waveFormat WaveFormat
bufferLength System.TimeSpan
리턴 System

InitSecondaryBuffer() 보호된 메소드

Initialize the SecondaryBuffer and Notify instances.
protected InitSecondaryBuffer ( ) : void
리턴 void

Play() 공개 메소드

public Play ( ) : void
리턴 void

Stop() 공개 메소드

public Stop ( ) : void
리턴 void

프로퍼티 상세

Device 보호되어 있는 프로퍼티

protected Device Device
리턴 Device

NotificationEvent 보호되어 있는 프로퍼티

protected AutoResetEvent,System.Threading NotificationEvent
리턴 System.Threading.AutoResetEvent