fix relative volume adjustment
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user