Copyright © 2005-2019 MultiMedia Soft

Spectrum.GetTable method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains the table of values related to each band of the spectrum: you can call this method each time you catch the SpectrumValueChange event.

 

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

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

 

 

Syntax

 

[Visual Basic]

Public Function GetTable (

nPlayerIndex as Int16,

tableValues() as Int16,

nTableLength as Int32

) as enumErrorCodes


 

[C#]

public enumErrorCodes GetTable (

Int16 nPlayerIndex,

Int16 [] tableValues,

Int32 nTableLength

);


 

[C++]

public: enumErrorCodes GetTable (

Int16 nPlayerIndex,

unsigned Int16 __gc[] tableValues,

Int32 nTableLength

);


 

 

Parameter

Description

 

 

nPlayerIndex

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

tableValues

Memory buffer that, on exit, will contain all of the available spectrum values: each value (2 bytes long) is in the range from 0 to 100.

nTableLength

Length of the table that needs to be obtained, expressed in number of values: the maximum number of values generated by the control is 64 and exceeding this limit would be useless.

 

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred. Check the LastError property value in order to see the last error.

enumErrorCodes.ERR_NOERROR (0)

The method call was successful.