per channel peak meters
This commit is contained in:
@@ -26,6 +26,8 @@ AudioDevice::AudioDevice(IMMDevice* device, LPCWSTR deviceId)
|
||||
err = device->Activate(__uuidof(IAudioMeterInformation), CLSCTX_INPROC_SERVER, NULL, (LPVOID*)&meterInterface);
|
||||
isError(err, "Failed to get audio meter interface: ");
|
||||
|
||||
getVolumeLimit(volumeInterface, &minVolumeDb, &maxVolumeDb);
|
||||
|
||||
if (propertyStore)
|
||||
{
|
||||
propertyStore->Release();
|
||||
@@ -35,7 +37,8 @@ AudioDevice::AudioDevice(IMMDevice* device, LPCWSTR deviceId)
|
||||
AudioDevice::AudioDevice(AudioDevice&& other) noexcept
|
||||
: device(other.device), volumeInterface(other.volumeInterface), meterInterface(other.meterInterface),
|
||||
id(other.id), name(other.name), state(other.state),
|
||||
isDefaultConsole(other.isDefaultConsole), isDefaultMedia(other.isDefaultMedia), isDefaultCommunication(other.isDefaultCommunication)
|
||||
isDefaultConsole(other.isDefaultConsole), isDefaultMedia(other.isDefaultMedia), isDefaultCommunication(other.isDefaultCommunication),
|
||||
minVolumeDb(other.minVolumeDb), maxVolumeDb(other.maxVolumeDb)
|
||||
{
|
||||
other.device = nullptr;
|
||||
other.volumeInterface = nullptr;
|
||||
@@ -53,6 +56,8 @@ AudioDevice& AudioDevice::operator=(AudioDevice&& other) noexcept
|
||||
this->isDefaultConsole = other.isDefaultConsole;
|
||||
this->isDefaultMedia = other.isDefaultMedia;
|
||||
this->isDefaultCommunication = other.isDefaultCommunication;
|
||||
this->minVolumeDb = other.minVolumeDb;
|
||||
this->maxVolumeDb = other.maxVolumeDb;
|
||||
|
||||
other.device = nullptr;
|
||||
other.volumeInterface = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user