Added looping to BackgroundMusic
This commit is contained in:
1 parent
056791ee70
commit
d1d792456b
3 files changed
+3
-1
No files matched your search
@@ -33,7 +33,7 @@ namespace Vocaluxe.Base
|
|||||||
foreach (int i in _BackgroundMusicStreams)
|
foreach (int i in _BackgroundMusicStreams)
|
||||||
{
|
{
|
||||||
CSound.Fade(i, CConfig.BackgroundMusicVolume, CConfig.FadeTime);
|
CSound.Fade(i, CConfig.BackgroundMusicVolume, CConfig.FadeTime);
|
||||||
CSound.Play(i);
|
CSound.Play(i, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -146,6 +146,7 @@ namespace Vocaluxe.Lib.Sound
|
|||||||
{
|
{
|
||||||
if (AlreadyAdded(Stream))
|
if (AlreadyAdded(Stream))
|
||||||
{
|
{
|
||||||
|
_Decoder[GetStreamIndex(Stream)].Loop = Loop;
|
||||||
_Decoder[GetStreamIndex(Stream)].Play();
|
_Decoder[GetStreamIndex(Stream)].Play();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -130,6 +130,7 @@ namespace Vocaluxe.Lib.Sound
|
|||||||
{
|
{
|
||||||
if (AlreadyAdded(Stream))
|
if (AlreadyAdded(Stream))
|
||||||
{
|
{
|
||||||
|
_Decoder[GetStreamIndex(Stream)].Loop = Loop;
|
||||||
_Decoder[GetStreamIndex(Stream)].Play();
|
_Decoder[GetStreamIndex(Stream)].Play();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user