News:

SMF - Just Installed!

Main Menu

Wav-sound player

Started by QNT, June 27, 2017, 11:46:56 AM

Previous topic - Next topic

QNT

Hello,

I created my own sound player form in C# with a DisplayWaveformAnalyzer and a DisplayWaveformScroller.
Everything works fine, except a couple of things.
In the demo application that is included in the installation package, there is the possibility to select a range and do a playback of only the selected range. Another possibility in the demo is to 'swipe' the sound in the DisplayWaveFormScroller.

I just don't get these two things to work.

Any help please?

Regards,

QNT

Administrator

Hello,

in order to play the range selected into the waveform analyzer, you can check the code of the SoundEditor sample project: the buttonPlaySelection_Click function contained inside the FormMain.cs file shows all of the needed code.
With regards to the waveform scroller, please, keep in mind that no sound is generated when the scroller is moved: apart from this, what do you need to do exactly?

Kind Regards

Severino Delaurenti
MultiMedia Soft

QNT

Hello,

the problem is that I just can NOT create a selection in the waveformanalyzer. So the code in the PlaySelection button does not help me.

Could you please help me how to make a selection in the waveformanalyzer?
If you click and drag in the demo application, a selection is created.
In my application, the creation of the selection does not work.
Are there some parameters to be set?

Thanks in advance,

QNT

Administrator

Hello,

if you are using a picture box or another control for positioning the analyzer on the user interface, please, be sure that the Enabled property of the picture box is set to False or it will "steal" mouse actions. With the WaveformAnalyzer, the picture box is only used as a positioning reference.

Kind Regards

Severino Delaurenti
MultiMedia Soft

QNT

Hello Admin,

thanks for the reply. This works indeed if you use the AudioSoundEditor control directly on a windows form.

In my case, I created a usercontrol that embeds the AudioSoundEditor control. This way, may 'Audioplayer'-control can be used in several forms and I don't need to recreate a complete solution everytime I need to use an audioplayer.

BUT

if you use it the way I do, the disabling of the picturebox is not changing anything to the problem. I still can not create a selection on the wavformanalyzer.

Any advise?

Regards,

QNT

Administrator

Hello,

in this case we would need to receive a project reproducing the issue so we could give it a deeper look.

Kind regards

Severino Delaurenti
MultiMedia Soft

QNT

Hello,

thanks to your hint I found the solution:

Within the control, the AudioSoundEditor control was added to a panel. Once I disabled the panel, everything worked fine.

Thanks for the advice.

QNT