mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 06:28:53 +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.
|
// Configuration for ffmpeg filters for audio processing.
|
||||||
module.exports.ffmpegFilterOptions = {
|
module.exports.ffmpegFilterOptions = {
|
||||||
threadAmount: '2',
|
threadAmount: '2',
|
||||||
|
forceNormalizerByBassBoost: true,
|
||||||
availableFilters: [
|
availableFilters: [
|
||||||
{
|
{
|
||||||
label: 'Bass boost',
|
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 bassboost is enabled and not normalizer, also enable normalizer to avoid distrorion
|
||||||
if (
|
if (
|
||||||
|
ffmpegFilterOptions.forceNormalizerByBassBoost &&
|
||||||
(selectMenuInteraction.values.includes('bassboost_low') ||
|
(selectMenuInteraction.values.includes('bassboost_low') ||
|
||||||
selectMenuInteraction.values.includes('bassboost')) &&
|
selectMenuInteraction.values.includes('bassboost')) &&
|
||||||
!selectMenuInteraction.values.includes('normalizer')
|
!selectMenuInteraction.values.includes('normalizer')
|
||||||
|
|||||||
Vendored
+1
@@ -116,6 +116,7 @@ export type FFmpegFilterOption = {
|
|||||||
|
|
||||||
export type FFmpegFilterOptions = {
|
export type FFmpegFilterOptions = {
|
||||||
threadAmount: string;
|
threadAmount: string;
|
||||||
|
forceNormalizerByBassBoost: boolean;
|
||||||
availableFilters: FFmpegFilterOption[];
|
availableFilters: FFmpegFilterOption[];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user