Navigation:  thinBasic Modules > TBASS (Sound Module) > Channels >

TBASS_ChannelSetAttribute

Previous pageReturn to chapter overviewNext page

 

Description

 

Sets the value of a channel's attribute.

 

Syntax

 

n = TBASS_ChannelSetAttribute(hChannel, lAttribute, lValue)

 

Returns

 

Number

If successful, then %TBASS_TRUE is returned, else %TBASS_FALSE is returned. Use TBASS_ErrorGetCode to get the error code.

 

Parameters

 

Name

Type

Optional

Meaning

hChannel

Numeric

No

The channel handle... a HCHANNEL, HMUSIC, HSTREAM, or HRECORD.

lAttribute

Numeric

No

The attribute to set the value of... one of the following.

%TBASS_ATTRIB_EAXMIX EAX wet/dry mix. (HCHANNEL/HMUSIC/HSTREAM only)

%TBASS_ATTRIB_FREQ Sample rate.

%TBASS_ATTRIB_MUSIC_AMPLIFY Amplification level. (HMUSIC)

%TBASS_ATTRIB_MUSIC_BPM BPM. (HMUSIC)

%TBASS_ATTRIB_MUSIC_PANSEP Pan separation level. (HMUSIC)

%TBASS_ATTRIB_MUSIC_PSCALER Position scaler. (HMUSIC)

%TBASS_ATTRIB_MUSIC_SPEED Speed. (HMUSIC)

%TBASS_ATTRIB_MUSIC_VOL_CHAN A channel volume level. (HMUSIC)

%TBASS_ATTRIB_MUSIC_VOL_GLOBAL Global volume level. (HMUSIC)

%TBASS_ATTRIB_MUSIC_VOL_INST An instrument/sample volume level. (HMUSIC)

%TBASS_ATTRIB_PAN Panning/balance position.

%TBASS_ATTRIB_VOL Volume level.

lValue

Numeric

No

The new attribute value.

 

Remarks

 

Restrictions

 

See also

 

Examples