TBASS_ChannelSetAttributes

<< Click to Display Table of Contents >>

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

TBASS_ChannelSetAttributes

 

Description

 

Sets the basic playback attributes of a sample, stream or MOD music.

 

Syntax

 

n = TBASS_ChannelSetAttributes(hChannel, Frequency, Volume, Pan)

 

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.

Frequency

Numeric

No

The sample rate

100 (min) to 100000 (max)

0 = original rate (when the channel was created)

-1 = leave current.

Volume

Numeric

No

The volume

0 (silent) to 1 (full)

-1 = leave current.

Pan

Numeric

No

The panning position

-1 (full left) to +1 (full right), 0 = centre

-101 = leave current.

 

Remarks

 

Restrictions

 

See also

 

Examples