fix relative volume adjustment

This commit is contained in:
Darius
2026-02-03 22:46:53 +01:00
parent 09b38cb929
commit 8119d35c0c

View File

@@ -58,7 +58,7 @@ export class TidalService extends BaseService<TidalClient> {
const req = await this.getVolume(); const req = await this.getVolume();
if (req.successful) { if (req.successful) {
const volume = req.result as number; const volume = req.result as number;
const wantedVolume = volume + value; const wantedVolume = this.percentageToDecimal(volume) + value;
const clampWantedVolume = this.clamp(wantedVolume); const clampWantedVolume = this.clamp(wantedVolume);
return await this.setVolumeToTidal(clampWantedVolume); return await this.setVolumeToTidal(clampWantedVolume);
} }