C# 클래스 Sharpex2D.Audio.OpenAL.OpenALAudioProvider

상속: IAudioProvider
파일 보기 프로젝트 열기: ThuCommix/Sharpex2D

공개 메소드들

메소드 설명
CreateAudioSource ( string path ) : IAudioSource

Creates an AudioSource.

Dispose ( ) : void

Disposes the object.

Initialize ( IAudioSource audioSource ) : void

Initializes the audio provider with the given audio source.

OpenALAudioProvider ( ) : System

Initializes a new OpenALAudioProvider class.

Pause ( ) : void

Pause a sound.

Play ( PlaybackMode playbackMode ) : void

Plays the sound.

Resume ( ) : void

Resumes a sound.

Seek ( long position ) : void

Seeks a sound to a specified position.

Stop ( ) : void

Stops the sound.

비공개 메소드들

메소드 설명
AudioBufferPlaybackChanged ( object sender, EventArgs e ) : void

Called if the AudioBuffer changed its playback.

DetectAudioFormat ( WaveFormat format ) : OpenALAudioFormat

Detects the OpenALAudioformat.

RaisePlaybackChanged ( ) : void

Raises the PlaybackChanged event.

메소드 상세

CreateAudioSource() 공개 메소드

Creates an AudioSource.
public CreateAudioSource ( string path ) : IAudioSource
path string The Path.
리턴 IAudioSource

Dispose() 공개 메소드

Disposes the object.
public Dispose ( ) : void
리턴 void

Initialize() 공개 메소드

Initializes the audio provider with the given audio source.
public Initialize ( IAudioSource audioSource ) : void
audioSource IAudioSource The AudioSource.
리턴 void

OpenALAudioProvider() 공개 메소드

Initializes a new OpenALAudioProvider class.
public OpenALAudioProvider ( ) : System
리턴 System

Pause() 공개 메소드

Pause a sound.
public Pause ( ) : void
리턴 void

Play() 공개 메소드

Plays the sound.
public Play ( PlaybackMode playbackMode ) : void
playbackMode PlaybackMode The PlaybackMode.
리턴 void

Resume() 공개 메소드

Resumes a sound.
public Resume ( ) : void
리턴 void

Seek() 공개 메소드

Seeks a sound to a specified position.
public Seek ( long position ) : void
position long The Position.
리턴 void

Stop() 공개 메소드

Stops the sound.
public Stop ( ) : void
리턴 void