MultiMedia Soft forum

MultiMedia Soft products => Audio editing components => Topic started by: HaraldHoffend on January 21, 2019, 05:51:51 PM

Title: How to refresh the WaveformDisplay after Editing
Post by: HaraldHoffend on January 21, 2019, 05:51:51 PM
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
Title: Re: How to refresh the WaveformDisplay after Editing
Post by: Administrator on January 22, 2019, 09:48:05 AM
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
Title: Re: How to refresh the WaveformDisplay after Editing
Post by: HaraldHoffend on January 22, 2019, 09:38:02 PM
Hello,
thanks a lot for the quick help.
Everything's fine now.

Kind Regards
Harald Hoffend