Skip to content

Commit

Permalink
Rename the bsinc table variables
Browse files Browse the repository at this point in the history
  • Loading branch information
kcat committed Feb 7, 2023
1 parent da845dd commit ba0f592
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions alc/alu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,11 @@ ResamplerFunc PrepareResampler(Resampler resampler, uint increment, InterpState
break;
case Resampler::FastBSinc12:
case Resampler::BSinc12:
BsincPrepare(increment, &state->bsinc, &bsinc12);
BsincPrepare(increment, &state->bsinc, &gBSinc12);
break;
case Resampler::FastBSinc24:
case Resampler::BSinc24:
BsincPrepare(increment, &state->bsinc, &bsinc24);
BsincPrepare(increment, &state->bsinc, &gBSinc24);
break;
}
return SelectResampler(resampler, increment);
Expand Down
4 changes: 3 additions & 1 deletion core/bsinc_defs.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#ifndef CORE_BSINC_DEFS_H
#define CORE_BSINC_DEFS_H

/* The number of distinct scale and phase intervals within the filter table. */
/* The number of distinct scale and phase intervals within the bsinc filter
* tables.
*/
constexpr unsigned int BSincScaleBits{4};
constexpr unsigned int BSincScaleCount{1 << BSincScaleBits};
constexpr unsigned int BSincPhaseBits{5};
Expand Down
4 changes: 2 additions & 2 deletions core/bsinc_tables.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,5 +291,5 @@ constexpr BSincTable GenerateBSincTable(const T &filter)

} // namespace

const BSincTable bsinc12{GenerateBSincTable(bsinc12_filter)};
const BSincTable bsinc24{GenerateBSincTable(bsinc24_filter)};
const BSincTable gBSinc12{GenerateBSincTable(bsinc12_filter)};
const BSincTable gBSinc24{GenerateBSincTable(bsinc24_filter)};
4 changes: 2 additions & 2 deletions core/bsinc_tables.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ struct BSincTable {
const float *Tab;
};

extern const BSincTable bsinc12;
extern const BSincTable bsinc24;
extern const BSincTable gBSinc12;
extern const BSincTable gBSinc24;

#endif /* CORE_BSINC_TABLES_H */

0 comments on commit ba0f592

Please sign in to comment.