Home > Archive (Community help, from old helpdesk) > Media Player Is Crash when Clear Audio Effect and Use Pitch Scale Effect

Media Player Is Crash when Clear Audio Effect and Use Pitch Scale Effect

Avatar image
Aug 23, 2015
Archive Agent wrote
last question:http://support.visioforge.com/forums/172855-community-help/suggestions/3981705-audio-effect-not-clear-when-playing-media-use-new-

and I just download it and test, test no problem. but
when I quick use that code twice , it let the Media Player crash.

I mean that code is a mouse click method:
MediaPlayer1.Audio_Effects_Clear(-1);
MediaPlayer1.Audio_Effects_Add(-1, VFAudioEffectType.PitchScale, true);
MediaPlayer1.Audio_Effects_PitchScale(-1, 0, VFFFTSize.Fts1024, 1050, 50, false);

and I quickly click the button twice. Media Player will be crash.

qakmak on May 22, 2013 06:46
Completed
0
Vote
Reply
9 Answers
Aug 23, 2015
Archive Agent agent wrote
qakmak

In fact, I performed is not fast. just it is executed twice within a short period of time will crash

on May 22, 2013 06:48
Aug 23, 2015
Archive Agent agent wrote
qakmak

not It's ok if use this:
Player.Audio_Effects_PitchScale(-1, 0, VFFFTSize.Fts2048, 1050, 5, false);

but still carash if use this(more serious):
Player.Audio_Effects_PitchScale(-1, 0, VFFFTSize.Fts2048, 1050, 50, false);//5 changed to 50

on May 28, 2013 10:38
Aug 23, 2015
Archive Agent agent wrote
qakmak

some times it still crash.........
Player.Audio_Effects_PitchScale(-1, 0, VFFFTSize.Fts2048, 1050, 5, false);

on May 28, 2013 10:41
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Using yesterday build?

on May 28, 2013 14:29
Aug 23, 2015
Archive Agent agent wrote
qakmak

I download today.7.14.8

on May 28, 2013 14:32
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

private bool f = false;

private void btTest_Click(object sender, EventArgs e)
{
if (!f)
{
MediaPlayer1.Audio_Effects_Clear(-1);
MediaPlayer1.Audio_Effects_Add(-1, VFAudioEffectType.PitchScale, true);
f = true;
}

MediaPlayer1.Audio_Effects_PitchScale(-1, 0, VFFFTSize.Fts1024, 1050, 50, false);
}

not crashed....

on June 01, 2013 14:11
Aug 23, 2015
Archive Agent agent wrote
qakmak

And How can i reset the audio effect ?

I can't use :Player.Audio_Effects_PitchScale(-1, 0, VFFFTSize.Fts1024, 1000, 0, false);
because that will be crash.
and I can't use :Player.Audio_Effects_Clear(-1);
because that like before, some times crash.

on June 01, 2013 15:50
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Please read documentation.

Specifies the quality of the filter. Large values require a lot of CPU time. A value of 8-32 is recommended.

You are set 0...

on June 04, 2013 19:14
Aug 23, 2015
Archive Agent agent wrote
qakmak

ok. sorry. I thought document not have description. problem completely resolved now.

on June 05, 2013 12:22