C# Class MediaPortal.MusicPlayer.BASS.MixerStream

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

CreateMixer() public méthode

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

Dispose() public méthode

public Dispose ( ) : void
Résultat void

FreeGcHandle() public méthode

Free the pinned Object
public FreeGcHandle ( int stream ) : void
stream int
Résultat void

MixerStream() public méthode

public MixerStream ( BassAudioEngine bassPlayer ) : System
bassPlayer BassAudioEngine
Résultat System

SetSyncPos() public méthode

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