Changeset 91577 in vbox for trunk/src/VBox
- Timestamp:
- Oct 5, 2021 4:55:53 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/audio/vkatCommon.cpp
r91576 r91577 142 142 CLSID CLSID_const MMDeviceEnumerator =_uuidof(MMDeviceEnumerator); 143 143 IID IID_const IMMDeviceEnumerator = uuidof(IMMDeviceEnumerator); 144 145 144 IMMDeviceEnumerator* pEnumerator; 145 HRESULT hr = CoCreateInstance(CLSID_MMDeviceEnumerator, NULL, CLSCTX_ALL, IID_IMMDeviceEnumerator, (void**)&pEnumerator); 146 146 IMMDevice *pDevice; 147 147 hr = pEnumerator->GetDefaultAudioEndpoint(EDataFlow::eRender, ERole::eConsole, &pDevice); 148 148 IAudioSessionManager *pManager; 149 150 151 152 149 IID IID_const IMMAudioSessionManager = uuidof(IAudioSessionManager); 150 hr = pDevice->Activate(IID_IMMAudioSessionManager, CLSCTX_ALL, NULL, (void**)&pManager); 151 ISimpleAudioVolume *pSimpleAudioVolume; 152 hr = pManager->GetSimpleAudioVolume(NULL, true, &pSimpleAudioVolume); 153 153 pSimpleAudioVolume->SetMasterVolume(1.0); 154 154 #endif
Note:
See TracChangeset
for help on using the changeset viewer.