Enable or Disable Flash Sounds
F-IN-BOX provides functions to globally control audio playback for all Flash movies associated with a given HFPC
instance.
Use the following functions:
- FPC_EnableSound — enables or disables all sounds.
- FPC_IsSoundEnabled — returns the current sound state.
This allows applications to mute or unmute Flash playback programmatically.
C++ Example
void Mute(HFPC hFPC)
{
// Disable all Flash sounds for this HFPC instance
FPC_EnableSound(hFPC, FALSE);
}
void Unmute(HFPC hFPC)
{
// Enable all Flash sounds for this HFPC instance
FPC_EnableSound(hFPC, TRUE);
}
bool IsSoundEnabled(HFPC hFPC)
{
return FPC_IsSoundEnabled(hFPC);
}