mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 14:38:49 +00:00
Merge pull request #216 from Kriblin/main
Added `forceNormalizerByBassBoost` option to ffmpeg filter options
This commit is contained in:
3 files changed
+3
No files matched your search
@@ -144,6 +144,7 @@ module.exports.ipRotationConfig = {
|
||||
// Configuration for ffmpeg filters for audio processing.
|
||||
module.exports.ffmpegFilterOptions = {
|
||||
threadAmount: '2',
|
||||
forceNormalizerByBassBoost: true,
|
||||
availableFilters: [
|
||||
{
|
||||
label: 'Bass boost',
|
||||
|
||||
@@ -49,6 +49,7 @@ class FiltersSelectMenuComponent extends BaseComponentInteraction {
|
||||
|
||||
// if bassboost is enabled and not normalizer, also enable normalizer to avoid distrorion
|
||||
if (
|
||||
ffmpegFilterOptions.forceNormalizerByBassBoost &&
|
||||
(selectMenuInteraction.values.includes('bassboost_low') ||
|
||||
selectMenuInteraction.values.includes('bassboost')) &&
|
||||
!selectMenuInteraction.values.includes('normalizer')
|
||||
|
||||
Vendored
+1
@@ -116,6 +116,7 @@ export type FFmpegFilterOption = {
|
||||
|
||||
export type FFmpegFilterOptions = {
|
||||
threadAmount: string;
|
||||
forceNormalizerByBassBoost: boolean;
|
||||
availableFilters: FFmpegFilterOption[];
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user