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

Function SoundCore_TweakVolumes

source/SoundCore.cpp:451–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449// Subsequent setting (to the same volume) will get ignored, as DirectSound thinks that volume is already set.
450
451void SoundCore_TweakVolumes()
452{
453 for (UINT i=0; i<g_uNumVoices; i++)
454 {
455 g_pVoices[i]->lpDSBvoice->SetVolume(g_pVoices[i]->nVolume-1);
456 g_pVoices[i]->lpDSBvoice->SetVolume(g_pVoices[i]->nVolume);
457 }
458}
459
460//-----------------------------------------------------------------------------
461

Callers 1

WndProcMethod · 0.85

Calls 1

SetVolumeMethod · 0.45

Tested by

no test coverage detected