Better name for function

This commit is contained in:
Flamefire committed 2014-08-07 19:33:26 +02:00
1 parent fe60f6f5df
commit dd4c3b3cf9
3 files changed
+5 -5

No files matched your search

@@ -378,7 +378,7 @@ namespace VocaluxeLib.PartyModes.TicTacToe
public override void OnClose() public override void OnClose()
{ {
base.OnClose(); base.OnClose();
CBase.BackgroundMusic.SetStatus(false); CBase.BackgroundMusic.SetDisabled(false);
CBase.Sound.FadeAndClose(_PreviewStream, 0f, 0.5f); CBase.Sound.FadeAndClose(_PreviewStream, 0f, 0.5f);
} }
@@ -501,7 +501,7 @@ namespace VocaluxeLib.PartyModes.TicTacToe
} }
CSong song = CBase.Songs.GetSongByID(songID); CSong song = CBase.Songs.GetSongByID(songID);
CBase.BackgroundMusic.SetStatus(true); CBase.BackgroundMusic.SetDisabled(true);
_PreviewStream = CBase.Sound.Load(song.GetMP3()); _PreviewStream = CBase.Sound.Load(song.GetMP3());
CBase.Sound.SetPosition(_PreviewStream, song.Preview.StartTime); CBase.Sound.SetPosition(_PreviewStream, song.Preview.StartTime);
@@ -525,7 +525,7 @@ namespace VocaluxeLib.PartyModes.TicTacToe
{ {
int songID = _Fields[_SelectedField].Content.SongID; int songID = _Fields[_SelectedField].Content.SongID;
CSong song = CBase.Songs.GetSongByID(songID); CSong song = CBase.Songs.GetSongByID(songID);
CBase.BackgroundMusic.SetStatus(true); CBase.BackgroundMusic.SetDisabled(true);
_PreviewStream = CBase.Sound.Load(song.GetMP3()); _PreviewStream = CBase.Sound.Load(song.GetMP3());
CBase.Sound.SetPosition(_PreviewStream, song.Preview.StartTime); CBase.Sound.SetPosition(_PreviewStream, song.Preview.StartTime);
+1 -1
View File
@@ -335,7 +335,7 @@ namespace Vocaluxe.Base
return CBackgroundMusic.VideoEnabled; return CBackgroundMusic.VideoEnabled;
} }
public void SetStatus(bool disabled) public void SetDisabled(bool disabled)
{ {
CBackgroundMusic.Disabled = disabled; CBackgroundMusic.Disabled = disabled;
} }
+1 -1
View File
@@ -118,7 +118,7 @@ namespace VocaluxeLib
bool SongHasVideo(); bool SongHasVideo();
bool VideoEnabled(); bool VideoEnabled();
void SetStatus(bool disabled); void SetDisabled(bool disabled);
void Next(); void Next();
void Previous(); void Previous();
void Pause(); void Pause();