bug fixes
This commit is contained in:
@@ -26,7 +26,11 @@ AudioDevice::AudioDevice(IMMDevice* device, LPCWSTR deviceId) : device(device)
|
||||
err = device->Activate(__uuidof(IAudioMeterInformation), CLSCTX_INPROC_SERVER, NULL, (LPVOID*)&meterInterface);
|
||||
isError(err, "Failed to get audio meter interface: ");
|
||||
|
||||
getVolumeLimit(volumeInterface, &minVolumeDb, &maxVolumeDb);
|
||||
if (volumeInterface != nullptr && meterInterface != nullptr)
|
||||
{
|
||||
getVolumeLimit(volumeInterface, &minVolumeDb, &maxVolumeDb);
|
||||
isInitialized = true;
|
||||
}
|
||||
|
||||
if (propertyStore)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user