1
0
mirror of synced 2025-02-17 19:09:25 +01:00

Fix playback volume being ignored when the speed is not 1x (#131)

・Apply BASS_ATTRIB_VOL attribute to TempoStream as well
This commit is contained in:
L1m0n3 2022-01-24 18:40:11 +09:00 committed by GitHub
parent 94a181abb3
commit ba4fd0a81c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -696,7 +696,8 @@ namespace FDK
if (this.bBASSサウンドである)
{
var db音量 = ((value.ToDouble() / 100.0) + 1.0).Clamp(0, 1);
Bass.BASS_ChannelSetAttribute(this.hBassStream, BASSAttribute.BASS_ATTRIB_VOL, (float) db音量);
Bass.BASS_ChannelSetAttribute(this._hBassStream, BASSAttribute.BASS_ATTRIB_VOL, (float) db音量);
Bass.BASS_ChannelSetAttribute(this._hTempoStream, BASSAttribute.BASS_ATTRIB_VOL, (float) db音量);
}
else if (this.bDirectSoundである)
{