Skip to content

Commit

Permalink
Improved IWavePlayer.Volume on UWP
Browse files Browse the repository at this point in the history
Get should return 1.0f, Set should throw a NotSupportedException.
  • Loading branch information
neilt6 authored Feb 6, 2020
1 parent e069bf5 commit f5bd874
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NAudio/Wave/WaveOutputs/WasapiOutRT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,9 @@ public PlaybackState PlaybackState
}

/// <summary>
/// Volume (not implemented)
/// Volume (not supported)
/// </summary>
float IWavePlayer.Volume { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
float IWavePlayer.Volume { get => 1.0f; set => throw new NotSupportedException(); }

#endregion

Expand Down

0 comments on commit f5bd874

Please sign in to comment.