Page 1 of 1

SetAudioEnabled() not working

Posted: Sun Sep 15, 2013 3:06 pm
by GfxBro
SetAudioEnabled is not working on 11.8.800.168. I have also 11.2.202.235 and working. I don't know other versions.

Posted: Tue Sep 17, 2013 11:36 am
by Softanics
Hello,

I'm going to check it.

Thank you.

Posted: Mon Oct 21, 2013 12:54 pm
by whome
Wohoo, I just found out the same bug and my findings are its WinOS+Flash.OCX combination issue. Both of these calls or one of them does nothing, tried just now. See last combo where audio mute did work fine.

FlashPlayerControl.SetAudioEnabled(false);
FlashPlayerControl.SetAudioVolume(0);

WinXP, Flash11.ocx (tried several ocx versions)
both commands are fine.

WinXP, Flash10.ocx (10.3.183.10)
both commands are fine.

Win7(64bit), Flash11.ocx (tried several ocx versions)
Audio functions do nothing, swf is playing sound even if I did not want to.

Win7(64bit), Flash10.ocx (10.3.183.10)
both commands are fine, am able to mute flash plugin.

TFlashPlayerControl.pas header says Version: 3.6. Did not check version number in DelphiIDE but I guess it should be this one.

I need to mute swf internal sound and playback .mp3 using delphi directx. Need to assign audio to specific audiocard. Flash always playbacks to windows default device. TFlashPlayerControl or FlashOCX interface does not let tell audio rendering device index.

Posted: Thu Oct 24, 2013 5:38 pm
by Softanics
Oh, that's fantasic!

whome wrote:Win7(64bit), Flash11.ocx (tried several ocx versions)
Audio functions do nothing, swf is playing sound even if I did not want to.


Aha, now I see. Would you mind to write me exact version of the flash ocx? If you install the most recent one, 11.9.900.117, the same issue?

Thank you for your help!