C# Class NScumm.Core.Audio.Mixer

Inheritance: NScumm.Core.Audio.SampleProviders.AudioSampleProvider16, IMixer
Show file Open project: scemino/nscumm Class Usage Examples

Public Methods

Method Description
GetChannelBalance ( SoundHandle handle ) : int
GetChannelVolume ( SoundHandle handle ) : int
GetSoundElapsedTime ( SoundHandle handle ) : int
GetVolumeForSoundType ( SoundType type ) : int
HasActiveChannelOfType ( SoundType type ) : bool
IsSoundHandleActive ( SoundHandle handle ) : bool
IsSoundIdActive ( int id ) : bool
IsSoundTypeMuted ( SoundType type ) : bool
Mixer ( int sampleRate ) : System
PauseAll ( bool pause ) : void
PauseHandle ( SoundHandle handle, bool paused ) : void
PauseId ( int id, bool paused ) : void
PlayStream ( SoundType type, IAudioStream stream, int id = -1, int volume = 255, int balance, bool autofreeStream = true, bool permanent = false, bool reverseStereo = false ) : SoundHandle
Read ( short samples, int count ) : int
SetChannelBalance ( SoundHandle handle, int balance ) : void
SetChannelVolume ( SoundHandle handle, int volume ) : void
StopAll ( ) : void
StopHandle ( SoundHandle handle ) : void
StopID ( int id ) : void

Private Methods

Method Description
GetElapsedTime ( SoundHandle handle ) : Timestamp
InsertChannel ( Channel chan ) : SoundHandle

Method Details

GetChannelBalance() public method

public GetChannelBalance ( SoundHandle handle ) : int
handle SoundHandle
return int

GetChannelVolume() public method

public GetChannelVolume ( SoundHandle handle ) : int
handle SoundHandle
return int

GetSoundElapsedTime() public method

public GetSoundElapsedTime ( SoundHandle handle ) : int
handle SoundHandle
return int

GetVolumeForSoundType() public method

public GetVolumeForSoundType ( SoundType type ) : int
type SoundType
return int

HasActiveChannelOfType() public method

public HasActiveChannelOfType ( SoundType type ) : bool
type SoundType
return bool

IsSoundHandleActive() public method

public IsSoundHandleActive ( SoundHandle handle ) : bool
handle SoundHandle
return bool

IsSoundIdActive() public method

public IsSoundIdActive ( int id ) : bool
id int
return bool

IsSoundTypeMuted() public method

public IsSoundTypeMuted ( SoundType type ) : bool
type SoundType
return bool

Mixer() public method

public Mixer ( int sampleRate ) : System
sampleRate int
return System

PauseAll() public method

public PauseAll ( bool pause ) : void
pause bool
return void

PauseHandle() public method

public PauseHandle ( SoundHandle handle, bool paused ) : void
handle SoundHandle
paused bool
return void

PauseId() public method

public PauseId ( int id, bool paused ) : void
id int
paused bool
return void

PlayStream() public method

public PlayStream ( SoundType type, IAudioStream stream, int id = -1, int volume = 255, int balance, bool autofreeStream = true, bool permanent = false, bool reverseStereo = false ) : SoundHandle
type SoundType
stream IAudioStream
id int
volume int
balance int
autofreeStream bool
permanent bool
reverseStereo bool
return SoundHandle

Read() public method

public Read ( short samples, int count ) : int
samples short
count int
return int

SetChannelBalance() public method

public SetChannelBalance ( SoundHandle handle, int balance ) : void
handle SoundHandle
balance int
return void

SetChannelVolume() public method

public SetChannelVolume ( SoundHandle handle, int volume ) : void
handle SoundHandle
volume int
return void

StopAll() public method

public StopAll ( ) : void
return void

StopHandle() public method

public StopHandle ( SoundHandle handle ) : void
handle SoundHandle
return void

StopID() public method

public StopID ( int id ) : void
id int
return void