C# Class MediaPortal.MusicPlayer.BASS.MixerStream

This class handles the Mixer Strem, which is used by the BASS Player
Inheritance: IDisposable
Exibir arquivo Open project: MediaPortal/MediaPortal-1 Class Usage Examples

Public Methods

Method Description
AttachStream ( MediaPortal.MusicPlayer.BASS.MusicStream stream ) : bool

Attach a stream to the Mixer

CreateMixer ( MediaPortal.MusicPlayer.BASS.MusicStream stream ) : bool

Create a mixer using the stream attributes

Dispose ( ) : void
FreeGcHandle ( int stream ) : void

Free the pinned Object

MixerStream ( BassAudioEngine bassPlayer ) : System
SetSyncPos ( MediaPortal.MusicPlayer.BASS.MusicStream stream, double timePos ) : void

Sets a SyncPos on the mixer stream

Private Methods

Method Description
AsioCallback ( bool input, int channel, IntPtr buffer, int length, IntPtr user ) : int

Callback from Asio to deliver data from Decoding channel

CreateFiveDotOneUpMixMatrix ( ) : ].float[
CreateFiveDotZeroUpMixMatrix ( ) : ].float[
CreateFourDotZeroUpMixMatrix ( ) : ].float[
CreateMixingMatrix ( int inputChannels ) : ].float[

Check, which Mixing Matrix to be used Thanks to Symphy, author of PureAudio, for this code

CreateMonoUpMixMatrix ( ) : ].float[
CreateQuadraphonicUpMixMatrix ( ) : ].float[
CreateStereoUpMixMatrix ( ) : ].float[
CreateThreeDotZeroUpMixMatrix ( ) : ].float[
PlaybackEndProc ( int handle, int stream, int data, IntPtr userData ) : void

End of Playback for a stream has been signaled Send event to Bass player to start playback of next song

WasApiCallback ( IntPtr buffer, int length, IntPtr user ) : int

Callback from WasApi to deliver data from Decoding channel

Method Details

AttachStream() public method

Attach a stream to the Mixer
public AttachStream ( MediaPortal.MusicPlayer.BASS.MusicStream stream ) : bool
stream MediaPortal.MusicPlayer.BASS.MusicStream
return bool

CreateMixer() public method

Create a mixer using the stream attributes
public CreateMixer ( MediaPortal.MusicPlayer.BASS.MusicStream stream ) : bool
stream MediaPortal.MusicPlayer.BASS.MusicStream
return bool

Dispose() public method

public Dispose ( ) : void
return void

FreeGcHandle() public method

Free the pinned Object
public FreeGcHandle ( int stream ) : void
stream int
return void

MixerStream() public method

public MixerStream ( BassAudioEngine bassPlayer ) : System
bassPlayer BassAudioEngine
return System

SetSyncPos() public method

Sets a SyncPos on the mixer stream
public SetSyncPos ( MediaPortal.MusicPlayer.BASS.MusicStream stream, double timePos ) : void
stream MediaPortal.MusicPlayer.BASS.MusicStream
timePos double
return void