Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int sessionCount;
- hr = audioSessionEnumerator->GetCount(&sessionCount);
- if (FAILED(hr)) {
- throw HRESULTException("audioSessionEnumerator->GetCount", hr);
- }
- IAudioSessionControl *audioSessionControl;
- for (int i = 0; i < sessionCount; ++i) {
- hr = audioSessionEnumerator->GetSession(i, &audioSessionControl);
- if (FAILED(hr)) {
- throw HRESULTException("audioSessionEnumerator->GetSession", hr);
- }
- LPWSTR displayName;
- hr = audioSessionControl->GetDisplayName(&displayName);
- if (FAILED(hr)) {
- throw HRESULTException("audioSessionControl->GetDisplayName", hr);
- }
- std::wcout << displayName << std::endl;
- CoTaskMemFree(displayName);
- audioSessionControl->Release();
- }
- audioSessionEnumerator->Release();
- Steam Client Bootstrapper
- melodysheep - The Face of Creation
- System Sounds
- (blank line)
- (blank line)
- @%SystemRoot%System32AudioSrv.Dll,-202
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement