Skip to content

Commit

Permalink
Add balance property
Browse files Browse the repository at this point in the history
  • Loading branch information
martijn00 committed Jul 27, 2019
1 parent ea4b9a8 commit 482bee7
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MediaManager/Platforms/Android/Volume/VolumeManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public bool Muted
}
}

public float Balance { get; set; }

public event VolumeChangedEventHandler VolumeChanged;
}
}
2 changes: 2 additions & 0 deletions MediaManager/Platforms/Apple/Volume/VolumeManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ public int MaxVolume

public event VolumeChangedEventHandler VolumeChanged;

public float Balance { get; set; }

public bool Muted
{
get => Player?.Muted ?? false;
Expand Down
2 changes: 2 additions & 0 deletions MediaManager/Platforms/Tizen/Volume/VolumeManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
2 changes: 2 additions & 0 deletions MediaManager/Platforms/Uap/Volume/VolumeManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
2 changes: 2 additions & 0 deletions MediaManager/Platforms/Wpf/Volume/VolumeManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
5 changes: 5 additions & 0 deletions MediaManager/Volume/IVolumeManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ public interface IVolumeManager
/// </summary>
int MaxVolume { get; set; }

/// <summary>
/// -1.0f (Left), 0.0f (Center), 1.0f (right)
/// </summary>
float Balance { get; set; }

/// <summary>
/// True if the sound is Muted
/// </summary>
Expand Down

0 comments on commit 482bee7

Please sign in to comment.