Copyright © 2005-2019 MultiMedia Soft

BassStreamGet method

Previous pageReturn to chapter overviewNext page



Obtains the handle to the playback stream (HSTREAM) created by BASS after calling one of the many methods having the "Load" prefix (like LoadSound and LoadSoundFromMemory) or through the StreamMixerCreate method,


The obtained handle allows calling functions of BASS.DLL directly or to apply to the playback stream some special effect exported by BASS plugins, for example BASS_SFX, BASS_WM, etc., not included inside the multimedia engine AdjMmsEng.dll.


See the BassModuleGet method for details about the direct usage of functions exported by the BASS.DLL library and by the other BASS plugins included inside the multimedia engine AdjMmsEng.dll.


For further details about accessing BASS and its plugins directly from your code you can refer to the tutorial How to access BASS library functionalities directly.





[Visual Basic]

Public Function BassStreamGet (

nPlayerIndex as Int16,

ByRef hStream as Int32

) as enumErrorCodes



public enumErrorCodes BassStreamGet (

Int16 nPlayerIndex,

ref Int32 hStream




public: enumErrorCodes BassStreamGet (

Int16 nPlayerIndex,

Int32 __gc *hStream









Number representing the zero-based index of the involved player


Reference that, on return from the method call, will contain the handle (HSTREAM) to the playback stream.



Return value






Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.NOERROR (0

The method call was successful.