MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / NewVolume

Function NewVolume

source/SoundCore.cpp:462–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460//-----------------------------------------------------------------------------
461
462LONG NewVolume(uint32_t dwVolume, uint32_t dwVolumeMax)
463{
464 float fVol = (float) dwVolume / (float) dwVolumeMax; // 0.0=Max, 1.0=Min
465
466 return (LONG) ((float) DSBVOLUME_MIN * fVol);
467}
468
469//=============================================================================
470

Callers 3

SetVolumeMethod · 0.85
SpkrSetVolumeFunction · 0.85
SetVolumeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected