How to refresh the WaveformDisplay after Editing

Started by HaraldHoffend, January 21, 2019, 05:51:51 PM

Previous topic - Next topic

HaraldHoffend

Hello,
how can i refresh the WaveformDisplay after deleting a part of the loaded Soundfile with the DeleteRange or the ReduceToRange?

Kind Regards
Harald Hoffend

Administrator

Hello,

when using threads in synchronous mode, after initializing the component through the UseThreadsInSyncMode method with its bUseThreadsInSyncMode parameter set to "true", the easiest way to perform this action is the following:

- invoke the DeleteRange method or any other method affecting sound's contents
- perform a new sound analysis through the WaveformAnalyzer.AnalyzeFullSound method
- force a new display of the updated waveform through a call to the WaveformAnalyzer.SetDisplayRange method by passing 0 and -1 respectively to the nBeginPosInMs and nEndPosInMs parameters

Hope this helps

Kind regards

Severino Delaurenti
MultiMedia Soft

HaraldHoffend

Hello,
thanks a lot for the quick help.
Everything's fine now.

Kind Regards
Harald Hoffend