Lines Matching defs:pVolMaster
40 int audioMixerUpdateSinkVolume(PAUDMIXSINK pSink, const PPDMAUDIOVOLUME pVolMaster, const PPDMAUDIOVOLUME pVolSink);
431 static inline PDMAUDIOVOLUME audioMixerVolMix(const PPDMAUDIOVOLUME pVolMaster, PPDMAUDIOVOLUME pVol)
434 volOut.fMuted = pVolMaster->fMuted || pVol->fMuted;
435 volOut.uLeft = ASMMultU64ByU32DivByU32(pVolMaster->uLeft, pVol->uLeft, 0x80000000U); /* Maximum is 0x80000000U */
436 volOut.uRight = ASMMultU64ByU32DivByU32(pVolMaster->uRight, pVol->uRight, 0x80000000U); /* Maximum is 0x80000000U */
439 pVolMaster, pVolMaster->fMuted, pVolMaster->uLeft, pVolMaster->uRight));
446 int audioMixerUpdateSinkVolume(PAUDMIXSINK pSink, const PPDMAUDIOVOLUME pVolMaster, const PPDMAUDIOVOLUME pVolSink)
449 AssertPtrReturn(pVolMaster, VERR_INVALID_POINTER);
453 pVolMaster->fMuted, pVolMaster->uLeft, pVolMaster->uRight));
460 volSink.fMuted = pVolMaster->fMuted || pVolSink->fMuted;
461 volSink.uLeft = (pVolSink->uLeft * pVolMaster->uLeft) / UINT8_MAX;
462 volSink.uRight = (pVolSink->uRight * pVolMaster->uRight) / UINT8_MAX;