public DeviceAppItemViewModel(IAudioMixerViewModelCallback callback, EarTrumpetAudioDeviceModel device, float volume)
        {
            IconHeight = IconWidth = 32;

            _device = device;
            _volume = Convert.ToInt32(Math.Round((volume * 100), MidpointRounding.AwayFromZero));
            _isMuted = device.IsMuted;
            _callback = callback;
            DisplayName = device.DisplayName;
            Id = device.Id;
        }
 public void SetDeviceVolume(EarTrumpetAudioDeviceModel device, float volume)
 {
     _deviceService.SetAudioDeviceVolume(device.Id, volume);
 }
 public void SetDeviceMute(EarTrumpetAudioDeviceModel device, bool isMuted)
 {
     if (isMuted)
     {
         _deviceService.MuteAudioDevice(device.Id);
     }
     else
     {
         _deviceService.UnmuteAudioDevice(device.Id);
     }
 }