C# 클래스 cadencii.media.MediaPlayer

Sound player using mciSendSring command operation
상속: IDisposable
파일 보기 프로젝트 열기: cadencii/cadencii

공개 메소드들

메소드 설명
Close ( ) : bool

Closes sound file

Dispose ( ) : void
GetLength ( ) : int

Gets the sound length in millisecond

GetPosition ( ) : int

Gets the current playing position in millisecond

Load ( string filename ) : bool

Opens sound file

Pause ( ) : bool

Pauses sound

Play ( ) : bool

Plays sound from time 0 second

PlayFrom ( double time ) : bool

Plays sound from specified second

ReLoad ( ) : void

Opens sound file which was closed with "UnLoad" method

Seek ( double pos_second ) : bool

Seeks to specified position

Stop ( ) : bool

Stops sound

UnLoad ( ) : void

Closes sound file temporary

비공개 메소드들

메소드 설명
GetVolume ( ) : int

Gets the volume (0 <= volume <= 1000)

SetSpeed ( float speed ) : void

Sets the speed

SetVolume ( int value ) : void

Sets the volume (0 >= volume >= 1000)

mciSendString ( string s1, StringBuilder s2, int i1, int i2 ) : int
w_mciSendString ( string command ) : bool
w_mciSendString ( string command, string &result ) : bool

mciSendString wrapper with exception handling

메소드 상세

Close() 공개 메소드

Closes sound file
public Close ( ) : bool
리턴 bool

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

GetLength() 공개 메소드

Gets the sound length in millisecond
public GetLength ( ) : int
리턴 int

GetPosition() 공개 메소드

Gets the current playing position in millisecond
public GetPosition ( ) : int
리턴 int

Load() 공개 메소드

Opens sound file
public Load ( string filename ) : bool
filename string Path of sound file to open
리턴 bool

Pause() 공개 메소드

Pauses sound
public Pause ( ) : bool
리턴 bool

Play() 공개 메소드

Plays sound from time 0 second
public Play ( ) : bool
리턴 bool

PlayFrom() 공개 메소드

Plays sound from specified second
public PlayFrom ( double time ) : bool
time double Sound position start to play
리턴 bool

ReLoad() 공개 메소드

Opens sound file which was closed with "UnLoad" method
public ReLoad ( ) : void
리턴 void

Seek() 공개 메소드

Seeks to specified position
public Seek ( double pos_second ) : bool
pos_second double position to seek in second
리턴 bool

Stop() 공개 메소드

Stops sound
public Stop ( ) : bool
리턴 bool

UnLoad() 공개 메소드

Closes sound file temporary
public UnLoad ( ) : void
리턴 void