mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 06:28:53 +00:00
fix: enable normalizer filter when bassboost is chosen
This commit is contained in:
1 parent
b3a5730b4b
commit
b236371abc
1 file changed
+7
-1
@@ -132,8 +132,14 @@ module.exports = {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let filtersToEnable = confirmation.values;
|
||||||
|
// if bassboost is enabled, also enable normalizer to avoid distrorion
|
||||||
|
if (confirmation.values.includes('bassboost_low') || confirmation.values.includes('bassboost')) {
|
||||||
|
filtersToEnable.push('normalizer');
|
||||||
|
}
|
||||||
|
|
||||||
// Enable provided filters
|
// Enable provided filters
|
||||||
queue.filters.ffmpeg.toggle(confirmation.values);
|
queue.filters.ffmpeg.toggle(filtersToEnable);
|
||||||
|
|
||||||
logger.debug(
|
logger.debug(
|
||||||
`[Shard ${interaction.guild.shardId}] Enabled filters ${confirmation.values.join(', ')} for command ${
|
`[Shard ${interaction.guild.shardId}] Enabled filters ${confirmation.values.join(', ')} for command ${
|
||||||
|
|||||||
Reference in new issue
Block a user