mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 06:28:54 +00:00
Added forceNormalizerByBassBoost option to ffmpeg filter options
- Introduced the `forceNormalizerByBassBoost` option to automatically enforce normalization when bass boost is applied. - By default, this feature is set to `true`. - Users have the flexibility to disable this option as per their requirements, ensuring adaptability in audio processing.
This commit is contained in:
1 parent
c8d5e4046f
commit
3ca24be685
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