Copyright © 2011-2018 MultiMedia Soft

WaveformAnalyzer.AnalyzeFullSound method

Previous pageReturn to chapter overviewNext page

Remarks

 

Starts the analysis of the recorded sound in order to allow the creation of bitmaps of the sound's waveform.

 

During the analysis phase, the CallbackPercentage delegate is invoked, with the nOperation parameter set to OPERATION_WAVE_ANALYSIS, in order to notify about the percentage of advancement.

 

After completing the analysis, it will be possible calculating the width in pixels of a bitmap view through the WaveformAnalyzer.SnapshotViewGetWidthForWaveform method and creating bitmaps of the waveform through the WaveformAnalyzer.SnapshotViewSaveToFile and WaveformAnalyzer.SnapshotViewSaveToMemory methods.

 

Data resulting from an analysis session can be discarded from memory using the WaveformAnalyzer.FreeMemory method.

 

This method doesn't require a previous call to the WaveformAnalyzer.Create method because it doesn't need displaying the Waveform Analyzer user interface.

 

For further details about callback delegates see the How to synchronize the container application with the API tutorial.

For details about the use of the Waveform Analyzer refer to the How to use the Waveform Analyzer section.

For further details about methods of the Waveform Analyzer refer to the WaveformAnalyzer class section.

 

 

Syntax

 

[Visual Basic]

Public Function AnalyzeFullSound (

) as enumErrorCodes


 

[C#]

public enumErrorCodes AnalyzeFullSound (

);


 

[C++]

public: enumErrorCodes AnalyzeFullSound (

);


 

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.ERR_NOERROR (0)

The method call was successful.