Skip to content

Commit

Permalink
Add define option to disable SBR/PS support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveice10 authored and Steveice10 committed Nov 3, 2023
1 parent 3a593d3 commit 617611c
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions libfaad/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,18 @@ extern "C" {
#undef ERROR_RESILIENCE
#endif

#define SBR_DEC
// Define DISABLE_SBR if you want to disable SBR decoding.
//#define DISABLE_SBR

// Define SBR_LOW_POWER if you want only low power SBR decoding without PS.
//#define SBR_LOW_POWER
#define PS_DEC

#ifdef SBR_LOW_POWER
#undef PS_DEC
#endif
#ifndef DISABLE_SBR
# define SBR_DEC
# ifndef SBR_LOW_POWER
# define PS_DEC
# endif // SBR_LOW_POWER
#endif // DISABLE_SBR

/* FIXED POINT: No MAIN decoding */
#ifdef FIXED_POINT
Expand Down

0 comments on commit 617611c

Please sign in to comment.