FPC_GetSoundVolume
Syntax
DWORD WINAPI FPC_GetSoundVolume(HFPC hFPC);
Description
The FPC_GetSoundVolume
function retrieves the current playback volume for all Flash sounds played by the control instance associated with hFPC
.
The return value is an integer in the range 0 to DEF_MAX_FLASH_AUDIO_VOLUME
.
The constant DEF_MAX_FLASH_AUDIO_VOLUME
is defined in f_in_box.h
.
A value of 0 means all audio is muted, while DEF_MAX_FLASH_AUDIO_VOLUME
represents the maximum volume.
See also FPC_SetSoundVolume.
Example
HFPC hFPC = FPC_LoadRegisteredOCX();
if (hFPC)
{
DWORD dwVolume = FPC_GetSoundVolume(hFPC);
// Display current volume
TCHAR szMsg[128];
wsprintf(szMsg, _T("Current volume: %u"), dwVolume);
MessageBox(NULL, szMsg, _T("Flash Volume"), MB_OK);
}