Copyright © 2006-2018 MultiMedia Soft

BassStreamGet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains the handle to the recording stream (HRECORD) or to the playback stream (HSTREAM) created by BASS after starting a recording or playback session,

 

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.

 

 

Syntax

 

[Visual Basic]

Public Function BassStreamGet (

bRecordingStream as Boolean,

ByRef hStream as Int32

) as enumErrorCodes


 

[C#]

public enumErrorCodes BassStreamGet (

bool bRecordingStream,

ref Int32 hStream

);


 

[C++]

public: enumErrorCodes BassStreamGet (

bool bRecordingStream,

Int32 __gc *hStream

);


 

 

Parameter

Description

 

 

bRecordingStream

Boolean value that specify if the handle to obtain is referred to a recording stream (HRECORD) or to a playback stream (HSTREAM).

Supported values are the following:

Mnemonic constant

Meaning

false

The requested handle is related to the.playback stream (HSTREAM)

true

The requested handle is related to the.recording stream (HRECORD)

hStream

Reference that, on return from the method call, will contain the handle to the requested stream.

This handle is valid only during the recording session or during the playback session.

 

 

Return value

 

Value

Meaning

 

 

Negative value

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

enumErrorCodes.ERR_NOERROR (0

The method call was successful.