Two small fixes (#832)
* Fix for CNameSelection * Fix for CPlaybackBase
This commit is contained in:
1 parent
9328210f9e
commit
4c984d9f7c
2 files changed
+20
-9
No files matched your search
@@ -1,4 +1,4 @@
|
||||
#region license
|
||||
#region license
|
||||
// This file is part of Vocaluxe.
|
||||
//
|
||||
// Vocaluxe is free software: you can redistribute it and/or modify
|
||||
@@ -73,9 +73,12 @@ namespace Vocaluxe.Lib.Sound.Playback
|
||||
if (!_Initialized)
|
||||
return;
|
||||
float volumeF = volume.Clamp(0, 100) / 100f;
|
||||
foreach (IAudioStream stream in _Streams)
|
||||
if(!stream.IsFading)
|
||||
stream.VolumeMax = volumeF;
|
||||
lock (_Streams)
|
||||
{
|
||||
foreach (IAudioStream stream in _Streams)
|
||||
if (!stream.IsFading)
|
||||
stream.VolumeMax = volumeF;
|
||||
}
|
||||
_GlobalVolume = volumeF;
|
||||
}
|
||||
|
||||
@@ -318,4 +321,4 @@ namespace Vocaluxe.Lib.Sound.Playback
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user