Navigation:  thinBasic Modules > TBASS > Channels >

TBASS_ChannelSetAttributes

Previous pageReturn to chapter overviewNext page

 

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)

100000 (max)

0 = original rate (when the channel was created)

-1 = leave current.

Volume

Numeric

No

The volume

0 (silent)

100 (max)

-1 = leave current.

Pan

Numeric

No

The panning position

-100 (left)

100 (right)

-101 = leave current.

 

Remarks

 

Restrictions

 

See also

 

Examples

 

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com