Copyright © 2001-2019 MultiMedia Soft

Spectrum.SetNumberOfBands method

Previous pageReturn to chapter overviewNext page

Remarks

 

Sets the number of bands used to display the spectrum: by default the spectrum will create 64 bands covering all of the needed frequencies; when number of bands is reduced, frequencies will be redistributed into available bands.

 

For further details about using the embedded Spectrum refer to the Spectrum object section.

For details about using Visual Feedbacks refer to the How to use the embedded Visual Feedbacks section.

 

 

Syntax

 

[Visual Basic]

control.Spectrum.SetNumberOfBands (

nPlayer as Integer,

nBands as Integer

) as enumErrorCodes


 

[C++]

short control.Spectrum.SetNumberOfBands (

short nPlayer,

short nBands

);


 

 

Parameter

Description

 

 

nPlayer

Number representing the zero-based index of the player that will use the Spectrum

nBands

Number of bands used to display the spectrum. Its value can range from 8 to 64 (default).

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred, check the LastError property value in order to get the error code

enumErrorCodes.ERR_NOERROR (0)

The method call was successful