diff --git a/MediaManager/Platforms/Android/Volume/VolumeManager.cs b/MediaManager/Platforms/Android/Volume/VolumeManager.cs index 6fd2373e..844b4772 100644 --- a/MediaManager/Platforms/Android/Volume/VolumeManager.cs +++ b/MediaManager/Platforms/Android/Volume/VolumeManager.cs @@ -48,6 +48,8 @@ public bool Muted } } + public float Balance { get; set; } + public event VolumeChangedEventHandler VolumeChanged; } } diff --git a/MediaManager/Platforms/Apple/Volume/VolumeManager.cs b/MediaManager/Platforms/Apple/Volume/VolumeManager.cs index c6daa3ae..2baac48f 100644 --- a/MediaManager/Platforms/Apple/Volume/VolumeManager.cs +++ b/MediaManager/Platforms/Apple/Volume/VolumeManager.cs @@ -47,6 +47,8 @@ public int MaxVolume public event VolumeChangedEventHandler VolumeChanged; + public float Balance { get; set; } + public bool Muted { get => Player?.Muted ?? false; diff --git a/MediaManager/Platforms/Tizen/Volume/VolumeManager.cs b/MediaManager/Platforms/Tizen/Volume/VolumeManager.cs index 6e3b0bf9..20d374ab 100644 --- a/MediaManager/Platforms/Tizen/Volume/VolumeManager.cs +++ b/MediaManager/Platforms/Tizen/Volume/VolumeManager.cs @@ -8,6 +8,8 @@ public class VolumeManager : IVolumeManager public int MaxVolume { get; set; } public bool Muted { get; set; } + public float Balance { get; set; } + public event VolumeChangedEventHandler VolumeChanged; } } diff --git a/MediaManager/Platforms/Uap/Volume/VolumeManager.cs b/MediaManager/Platforms/Uap/Volume/VolumeManager.cs index ebbcc5b1..8bdb0f7b 100644 --- a/MediaManager/Platforms/Uap/Volume/VolumeManager.cs +++ b/MediaManager/Platforms/Uap/Volume/VolumeManager.cs @@ -8,6 +8,8 @@ public class VolumeManager : IVolumeManager public int MaxVolume { get; set; } public bool Muted { get; set; } + public float Balance { get; set; } + public event VolumeChangedEventHandler VolumeChanged; } } diff --git a/MediaManager/Platforms/Wpf/Volume/VolumeManager.cs b/MediaManager/Platforms/Wpf/Volume/VolumeManager.cs index ea5980d3..0c65829d 100644 --- a/MediaManager/Platforms/Wpf/Volume/VolumeManager.cs +++ b/MediaManager/Platforms/Wpf/Volume/VolumeManager.cs @@ -8,6 +8,8 @@ public class VolumeManager : IVolumeManager public int MaxVolume { get; set; } public bool Muted { get; set; } + public float Balance { get; set; } + public event VolumeChangedEventHandler VolumeChanged; } } diff --git a/MediaManager/Volume/IVolumeManager.cs b/MediaManager/Volume/IVolumeManager.cs index 57cb6253..1140e279 100644 --- a/MediaManager/Volume/IVolumeManager.cs +++ b/MediaManager/Volume/IVolumeManager.cs @@ -20,6 +20,11 @@ public interface IVolumeManager /// int MaxVolume { get; set; } + /// + /// -1.0f (Left), 0.0f (Center), 1.0f (right) + /// + float Balance { get; set; } + /// /// True if the sound is Muted ///