Skip to content

Commit

Permalink
Bugfix: balance was resetting back to 0 on stop.
Browse files Browse the repository at this point in the history
  • Loading branch information
Beluki committed Feb 1, 2015
1 parent 3b43c21 commit a969e47
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Documentation/Changelog
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

CHANGELOG

* 2015/02/01:

- Fixed: balance was resetting back to 0 on stop.

* 2015/01/30:

- Fixed: dynamic menu items (those generated from the Streams.ini file)
Expand Down
4 changes: 2 additions & 2 deletions Source/GaGa/Assembly/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@

[assembly: AssemblyTitle("GaGa Radio Player")]
[assembly: AssemblyProduct("GaGa")]
[assembly: AssemblyVersion("2015.01.30")]
[assembly: AssemblyFileVersion("2015.01.30")]
[assembly: AssemblyVersion("2015.02.01")]
[assembly: AssemblyFileVersion("2015.02.01")]

4 changes: 3 additions & 1 deletion Source/GaGa/NotifyIconPlayer/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,15 @@ public void Stop()
// corner case:
// if we only call .Stop(), the player continues downloading
// from online streams, but .Close() calls _mediaState.Init()
// changing the volume, so save and restore it:
// changing the balance/volume, so save and restore them:
Double balance = player.Balance;
Double volume = player.Volume;

player.Stop();
player.Close();
player.IsMuted = false;

player.Balance = balance;
player.Volume = volume;

bufferingIconTimer.Stop();
Expand Down

0 comments on commit a969e47

Please sign in to comment.