diff options
author | Chris Robinson <[email protected]> | 2019-09-19 21:01:10 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-09-19 21:01:10 -0700 |
commit | 057b253adba81430e51ce07951eda7dda03f7a08 (patch) | |
tree | eddd1197bec62d4a62c62ae2946e42d626ad7f94 /alc | |
parent | c0678816fc9d3cf60ce35c0b608371c261691727 (diff) |
Use an anonymous namespace instead of static
Diffstat (limited to 'alc')
-rw-r--r-- | alc/mixvoice.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/alc/mixvoice.cpp b/alc/mixvoice.cpp index 34fe9275..1d18a3a5 100644 --- a/alc/mixvoice.cpp +++ b/alc/mixvoice.cpp @@ -76,10 +76,13 @@ Resampler ResamplerDefault = LinearResampler; MixerFunc MixSamples = Mix_<CTag>; RowMixerFunc MixRowSamples = MixRow_<CTag>; -static HrtfMixerFunc MixHrtfSamples = MixHrtf_<CTag>; -static HrtfMixerBlendFunc MixHrtfBlendSamples = MixHrtfBlend_<CTag>; -static MixerFunc SelectMixer() +namespace { + +HrtfMixerFunc MixHrtfSamples = MixHrtf_<CTag>; +HrtfMixerBlendFunc MixHrtfBlendSamples = MixHrtfBlend_<CTag>; + +inline MixerFunc SelectMixer() { #ifdef HAVE_NEON if((CPUCapFlags&CPU_CAP_NEON)) @@ -92,7 +95,7 @@ static MixerFunc SelectMixer() return Mix_<CTag>; } -static RowMixerFunc SelectRowMixer() +inline RowMixerFunc SelectRowMixer() { #ifdef HAVE_NEON if((CPUCapFlags&CPU_CAP_NEON)) @@ -105,7 +108,7 @@ static RowMixerFunc SelectRowMixer() return MixRow_<CTag>; } -static inline HrtfMixerFunc SelectHrtfMixer() +inline HrtfMixerFunc SelectHrtfMixer() { #ifdef HAVE_NEON if((CPUCapFlags&CPU_CAP_NEON)) @@ -118,7 +121,7 @@ static inline HrtfMixerFunc SelectHrtfMixer() return MixHrtf_<CTag>; } -static inline HrtfMixerBlendFunc SelectHrtfBlendMixer() +inline HrtfMixerBlendFunc SelectHrtfBlendMixer() { #ifdef HAVE_NEON if((CPUCapFlags&CPU_CAP_NEON)) @@ -131,6 +134,9 @@ static inline HrtfMixerBlendFunc SelectHrtfBlendMixer() return MixHrtfBlend_<CTag>; } +} // namespace + + ResamplerFunc SelectResampler(Resampler resampler) { switch(resampler) |