diff options
-rw-r--r-- | Alc/backends/alsa.cpp | 2 | ||||
-rw-r--r-- | Alc/backends/jack.cpp | 2 | ||||
-rw-r--r-- | Alc/backends/portaudio.cpp | 2 | ||||
-rw-r--r-- | Alc/backends/pulseaudio.cpp | 6 | ||||
-rw-r--r-- | Alc/effects/autowah.cpp | 2 | ||||
-rw-r--r-- | Alc/effects/chorus.cpp | 4 | ||||
-rw-r--r-- | Alc/effects/compressor.cpp | 2 | ||||
-rw-r--r-- | Alc/effects/dedicated.cpp | 2 | ||||
-rw-r--r-- | Alc/effects/distortion.cpp | 2 | ||||
-rw-r--r-- | Alc/effects/echo.cpp | 2 | ||||
-rw-r--r-- | Alc/effects/equalizer.cpp | 2 | ||||
-rw-r--r-- | Alc/effects/fshifter.cpp | 4 | ||||
-rw-r--r-- | Alc/effects/modulator.cpp | 2 | ||||
-rw-r--r-- | Alc/effects/null.cpp | 2 | ||||
-rw-r--r-- | Alc/effects/pshifter.cpp | 4 | ||||
-rw-r--r-- | Alc/effects/reverb.cpp | 2 | ||||
-rw-r--r-- | Alc/helpers.cpp | 2 | ||||
-rw-r--r-- | Alc/mixvoice.cpp | 10 | ||||
-rw-r--r-- | common/almalloc.cpp | 4 |
19 files changed, 29 insertions, 29 deletions
diff --git a/Alc/backends/alsa.cpp b/Alc/backends/alsa.cpp index 5472c86f..ef5d6f7c 100644 --- a/Alc/backends/alsa.cpp +++ b/Alc/backends/alsa.cpp @@ -204,7 +204,7 @@ ALSA_FUNCS(MAKE_FUNC); #endif -bool alsa_load(void) +bool alsa_load() { bool error{false}; diff --git a/Alc/backends/jack.cpp b/Alc/backends/jack.cpp index a556a190..c079bb19 100644 --- a/Alc/backends/jack.cpp +++ b/Alc/backends/jack.cpp @@ -100,7 +100,7 @@ decltype(jack_error_callback) * pjack_error_callback; jack_options_t ClientOptions = JackNullOption; -ALCboolean jack_load(void) +ALCboolean jack_load() { ALCboolean error = ALC_FALSE; diff --git a/Alc/backends/portaudio.cpp b/Alc/backends/portaudio.cpp index 74c644f5..f6cf7c05 100644 --- a/Alc/backends/portaudio.cpp +++ b/Alc/backends/portaudio.cpp @@ -69,7 +69,7 @@ MAKE_FUNC(Pa_GetStreamInfo); #endif #endif -bool pa_load(void) +bool pa_load() { PaError err; diff --git a/Alc/backends/pulseaudio.cpp b/Alc/backends/pulseaudio.cpp index df506304..bf952813 100644 --- a/Alc/backends/pulseaudio.cpp +++ b/Alc/backends/pulseaudio.cpp @@ -186,7 +186,7 @@ MAKE_FUNC(pa_stream_begin_write); #endif -ALCboolean pulse_load(void) +ALCboolean pulse_load() { ALCboolean ret{ALC_TRUE}; #ifdef HAVE_DYNLOAD @@ -599,7 +599,7 @@ void device_sink_callback(pa_context *UNUSED(context), const pa_sink_info *info, TRACE("Got device \"%s\", \"%s\"\n", newentry.name.c_str(), newentry.device_name.c_str()); } -void probePlaybackDevices(void) +void probePlaybackDevices() { PlaybackDevices.clear(); @@ -681,7 +681,7 @@ void device_source_callback(pa_context *UNUSED(context), const pa_source_info *i TRACE("Got device \"%s\", \"%s\"\n", newentry.name.c_str(), newentry.device_name.c_str()); } -void probeCaptureDevices(void) +void probeCaptureDevices() { CaptureDevices.clear(); diff --git a/Alc/effects/autowah.cpp b/Alc/effects/autowah.cpp index 19e287fd..f7d07fe2 100644 --- a/Alc/effects/autowah.cpp +++ b/Alc/effects/autowah.cpp @@ -203,7 +203,7 @@ struct AutowahStateFactory final : public EffectStateFactory { EffectState *AutowahStateFactory::create() { return new ALautowahState{}; } -EffectStateFactory *AutowahStateFactory_getFactory(void) +EffectStateFactory *AutowahStateFactory_getFactory() { static AutowahStateFactory AutowahFactory{}; return &AutowahFactory; diff --git a/Alc/effects/chorus.cpp b/Alc/effects/chorus.cpp index 13a35c54..05216059 100644 --- a/Alc/effects/chorus.cpp +++ b/Alc/effects/chorus.cpp @@ -265,7 +265,7 @@ EffectState *ChorusStateFactory::create() } // namespace -EffectStateFactory *ChorusStateFactory_getFactory(void) +EffectStateFactory *ChorusStateFactory_getFactory() { static ChorusStateFactory ChorusFactory{}; return &ChorusFactory; @@ -384,7 +384,7 @@ DEFINE_ALEFFECT_VTABLE(ALchorus); /* Flanger is basically a chorus with a really short delay. They can both use * the same processing functions, so piggyback flanger on the chorus functions. */ -EffectStateFactory *FlangerStateFactory_getFactory(void) +EffectStateFactory *FlangerStateFactory_getFactory() { return ChorusStateFactory_getFactory(); } diff --git a/Alc/effects/compressor.cpp b/Alc/effects/compressor.cpp index c1bb0ba1..93ab9bbc 100644 --- a/Alc/effects/compressor.cpp +++ b/Alc/effects/compressor.cpp @@ -160,7 +160,7 @@ struct CompressorStateFactory final : public EffectStateFactory { EffectState *CompressorStateFactory::create() { return new ALcompressorState{}; } -EffectStateFactory *CompressorStateFactory_getFactory(void) +EffectStateFactory *CompressorStateFactory_getFactory() { static CompressorStateFactory CompressorFactory{}; return &CompressorFactory; diff --git a/Alc/effects/dedicated.cpp b/Alc/effects/dedicated.cpp index 2571d510..64b24e9d 100644 --- a/Alc/effects/dedicated.cpp +++ b/Alc/effects/dedicated.cpp @@ -102,7 +102,7 @@ struct DedicatedStateFactory final : public EffectStateFactory { EffectState *DedicatedStateFactory::create() { return new ALdedicatedState{}; } -EffectStateFactory *DedicatedStateFactory_getFactory(void) +EffectStateFactory *DedicatedStateFactory_getFactory() { static DedicatedStateFactory DedicatedFactory{}; return &DedicatedFactory; diff --git a/Alc/effects/distortion.cpp b/Alc/effects/distortion.cpp index 95569cda..12eb12fb 100644 --- a/Alc/effects/distortion.cpp +++ b/Alc/effects/distortion.cpp @@ -169,7 +169,7 @@ struct DistortionStateFactory final : public EffectStateFactory { EffectState *DistortionStateFactory::create() { return new ALdistortionState{}; } -EffectStateFactory *DistortionStateFactory_getFactory(void) +EffectStateFactory *DistortionStateFactory_getFactory() { static DistortionStateFactory DistortionFactory{}; return &DistortionFactory; diff --git a/Alc/effects/echo.cpp b/Alc/effects/echo.cpp index cadd62f2..197e9686 100644 --- a/Alc/effects/echo.cpp +++ b/Alc/effects/echo.cpp @@ -180,7 +180,7 @@ struct EchoStateFactory final : public EffectStateFactory { EffectState *EchoStateFactory::create() { return new ALechoState{}; } -EffectStateFactory *EchoStateFactory_getFactory(void) +EffectStateFactory *EchoStateFactory_getFactory() { static EchoStateFactory EchoFactory{}; return &EchoFactory; diff --git a/Alc/effects/equalizer.cpp b/Alc/effects/equalizer.cpp index 5c531079..fc00d00f 100644 --- a/Alc/effects/equalizer.cpp +++ b/Alc/effects/equalizer.cpp @@ -184,7 +184,7 @@ struct EqualizerStateFactory final : public EffectStateFactory { EffectState *EqualizerStateFactory::create() { return new ALequalizerState{}; } -EffectStateFactory *EqualizerStateFactory_getFactory(void) +EffectStateFactory *EqualizerStateFactory_getFactory() { static EqualizerStateFactory EqualizerFactory{}; return &EqualizerFactory; diff --git a/Alc/effects/fshifter.cpp b/Alc/effects/fshifter.cpp index 994dd90c..55ff4247 100644 --- a/Alc/effects/fshifter.cpp +++ b/Alc/effects/fshifter.cpp @@ -46,7 +46,7 @@ using complex_d = std::complex<double>; /* Define a Hann window, used to filter the HIL input and output. */ /* Making this constexpr seems to require C++14. */ -std::array<ALdouble,HIL_SIZE> InitHannWindow(void) +std::array<ALdouble,HIL_SIZE> InitHannWindow() { std::array<ALdouble,HIL_SIZE> ret; /* Create lookup table of the Hann window for the desired size, i.e. HIL_SIZE */ @@ -211,7 +211,7 @@ struct FshifterStateFactory final : public EffectStateFactory { EffectState *FshifterStateFactory::create() { return new ALfshifterState{}; } -EffectStateFactory *FshifterStateFactory_getFactory(void) +EffectStateFactory *FshifterStateFactory_getFactory() { static FshifterStateFactory FshifterFactory{}; return &FshifterFactory; diff --git a/Alc/effects/modulator.cpp b/Alc/effects/modulator.cpp index 4b7adaba..d9a3046e 100644 --- a/Alc/effects/modulator.cpp +++ b/Alc/effects/modulator.cpp @@ -177,7 +177,7 @@ struct ModulatorStateFactory final : public EffectStateFactory { EffectState *ModulatorStateFactory::create() { return new ALmodulatorState{}; } -EffectStateFactory *ModulatorStateFactory_getFactory(void) +EffectStateFactory *ModulatorStateFactory_getFactory() { static ModulatorStateFactory ModulatorFactory{}; return &ModulatorFactory; diff --git a/Alc/effects/null.cpp b/Alc/effects/null.cpp index 9cb73e72..7401fa6d 100644 --- a/Alc/effects/null.cpp +++ b/Alc/effects/null.cpp @@ -69,7 +69,7 @@ struct NullStateFactory final : public EffectStateFactory { EffectState *NullStateFactory::create() { return new ALnullState{}; } -EffectStateFactory *NullStateFactory_getFactory(void) +EffectStateFactory *NullStateFactory_getFactory() { static NullStateFactory NullFactory{}; return &NullFactory; diff --git a/Alc/effects/pshifter.cpp b/Alc/effects/pshifter.cpp index f0b9de1c..7bd7ada0 100644 --- a/Alc/effects/pshifter.cpp +++ b/Alc/effects/pshifter.cpp @@ -78,7 +78,7 @@ inline int double2int(double d) /* Define a Hann window, used to filter the STFT input and output. */ /* Making this constexpr seems to require C++14. */ -std::array<ALdouble,STFT_SIZE> InitHannWindow(void) +std::array<ALdouble,STFT_SIZE> InitHannWindow() { std::array<ALdouble,STFT_SIZE> ret; /* Create lookup table of the Hann window for the desired size, i.e. HIL_SIZE */ @@ -326,7 +326,7 @@ struct PshifterStateFactory final : public EffectStateFactory { EffectState *PshifterStateFactory::create() { return new ALpshifterState{}; } -EffectStateFactory *PshifterStateFactory_getFactory(void) +EffectStateFactory *PshifterStateFactory_getFactory() { static PshifterStateFactory PshifterFactory{}; return &PshifterFactory; diff --git a/Alc/effects/reverb.cpp b/Alc/effects/reverb.cpp index 8ce93339..6f007046 100644 --- a/Alc/effects/reverb.cpp +++ b/Alc/effects/reverb.cpp @@ -1420,7 +1420,7 @@ EffectState *ReverbStateFactory::create() } // namespace -EffectStateFactory *ReverbStateFactory_getFactory(void) +EffectStateFactory *ReverbStateFactory_getFactory() { static ReverbStateFactory ReverbFactory{}; return &ReverbFactory; diff --git a/Alc/helpers.cpp b/Alc/helpers.cpp index 598555ab..13ba3a2a 100644 --- a/Alc/helpers.cpp +++ b/Alc/helpers.cpp @@ -713,7 +713,7 @@ al::vector<std::string> SearchDataFiles(const char *ext, const char *subdir) return results; } -void SetRTPriority(void) +void SetRTPriority() { bool failed = false; #if defined(HAVE_PTHREAD_SETSCHEDPARAM) && !defined(__OpenBSD__) diff --git a/Alc/mixvoice.cpp b/Alc/mixvoice.cpp index e0c446a2..7d30ad12 100644 --- a/Alc/mixvoice.cpp +++ b/Alc/mixvoice.cpp @@ -61,7 +61,7 @@ RowMixerFunc MixRowSamples = MixRow_C; static HrtfMixerFunc MixHrtfSamples = MixHrtf_C; static HrtfMixerBlendFunc MixHrtfBlendSamples = MixHrtfBlend_C; -static MixerFunc SelectMixer(void) +static MixerFunc SelectMixer() { #ifdef HAVE_NEON if((CPUCapFlags&CPU_CAP_NEON)) @@ -74,7 +74,7 @@ static MixerFunc SelectMixer(void) return Mix_C; } -static RowMixerFunc SelectRowMixer(void) +static RowMixerFunc SelectRowMixer() { #ifdef HAVE_NEON if((CPUCapFlags&CPU_CAP_NEON)) @@ -87,7 +87,7 @@ static RowMixerFunc SelectRowMixer(void) return MixRow_C; } -static inline HrtfMixerFunc SelectHrtfMixer(void) +static inline HrtfMixerFunc SelectHrtfMixer() { #ifdef HAVE_NEON if((CPUCapFlags&CPU_CAP_NEON)) @@ -100,7 +100,7 @@ static inline HrtfMixerFunc SelectHrtfMixer(void) return MixHrtf_C; } -static inline HrtfMixerBlendFunc SelectHrtfBlendMixer(void) +static inline HrtfMixerBlendFunc SelectHrtfBlendMixer() { #ifdef HAVE_NEON if((CPUCapFlags&CPU_CAP_NEON)) @@ -152,7 +152,7 @@ ResamplerFunc SelectResampler(Resampler resampler) } -void aluInitMixer(void) +void aluInitMixer() { const char *str; diff --git a/common/almalloc.cpp b/common/almalloc.cpp index 7f13cfba..35b95001 100644 --- a/common/almalloc.cpp +++ b/common/almalloc.cpp @@ -73,7 +73,7 @@ void al_free(void *ptr) noexcept #endif } -size_t al_get_page_size(void) noexcept +size_t al_get_page_size() noexcept { static size_t psize = 0; if(UNLIKELY(!psize)) @@ -98,7 +98,7 @@ size_t al_get_page_size(void) noexcept return psize; } -int al_is_sane_alignment_allocator(void) noexcept +int al_is_sane_alignment_allocator() noexcept { #if defined(HAVE_ALIGNED_ALLOC) || defined(HAVE_POSIX_MEMALIGN) || defined(HAVE__ALIGNED_MALLOC) return 1; |