mirror of
https://github.com/Coloryr/AllMusic.git
synced 2026-11-08 18:54:44 +00:00
Update AllMusicPlayer.java
This commit is contained in:
1 parent
208d6a9dce
commit
de187bb66a
1 file changed
+4
-1
@@ -139,7 +139,10 @@ public class AllMusicPlayer extends InputStream {
|
||||
float temp = AllMusicCore.bridge.getVolume();
|
||||
float now = AL10.alGetSourcef(index, AL10.AL_GAIN);
|
||||
if (isChat) {
|
||||
temp *= 0.2F;
|
||||
temp *= 0.5F;
|
||||
}
|
||||
if (temp < 0.05F) {
|
||||
temp = 0.05F;
|
||||
}
|
||||
if (now != temp) {
|
||||
AL10.alSourcef(index, AL10.AL_GAIN, temp);
|
||||
|
||||
Reference in new issue
Block a user