mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Replace all include guard ifdefs with "#pragma once"
This commit is contained in:
@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _AOSOUNDSTREAM_H_
|
||||
#define _AOSOUNDSTREAM_H_
|
||||
#pragma once
|
||||
|
||||
#include "SoundStream.h"
|
||||
#include "Thread.h"
|
||||
@ -53,5 +52,3 @@ public:
|
||||
AOSound(CMixer *mixer) : SoundStream(mixer) {}
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif //_AOSOUNDSTREAM_H_
|
||||
|
@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _ALSA_SOUND_STREAM_H
|
||||
#define _ALSA_SOUND_STREAM_H
|
||||
#pragma once
|
||||
|
||||
#if defined(HAVE_ALSA) && HAVE_ALSA
|
||||
#include <alsa/asoundlib.h>
|
||||
@ -52,6 +51,3 @@ public:
|
||||
AlsaSound(CMixer *mixer) : SoundStream(mixer) {}
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _AUDIO_COMMON_H_
|
||||
#define _AUDIO_COMMON_H_
|
||||
#pragma once
|
||||
|
||||
#include "Common.h"
|
||||
#include "SoundStream.h"
|
||||
@ -47,5 +46,3 @@ namespace AudioCommon
|
||||
void PauseAndLock(bool doLock, bool unpauseOnUnlock=true);
|
||||
void UpdateSoundStream();
|
||||
}
|
||||
|
||||
#endif // _AUDIO_COMMON_H_
|
||||
|
@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _COREAUDIO_SOUND_STREAM_H
|
||||
#define _COREAUDIO_SOUND_STREAM_H
|
||||
#pragma once
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <AudioUnit/AudioUnit.h>
|
||||
@ -34,7 +33,7 @@ public:
|
||||
|
||||
private:
|
||||
AudioUnit audioUnit;
|
||||
int m_volume;
|
||||
int m_volume;
|
||||
|
||||
static OSStatus callback(void *inRefCon,
|
||||
AudioUnitRenderActionFlags *ioActionFlags,
|
||||
@ -46,5 +45,3 @@ public:
|
||||
CoreAudioSound(CMixer *mixer) : SoundStream(mixer) {}
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -2,10 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _DPL2DECODER_H_
|
||||
#define _DPL2DECODER_H_
|
||||
#pragma once
|
||||
|
||||
void dpl2decode(float *samples, int numsamples, float *out);
|
||||
void dpl2reset();
|
||||
|
||||
#endif // _DPL2DECODER_H_
|
||||
|
@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _DSOUNDSTREAM_H_
|
||||
#define _DSOUNDSTREAM_H_
|
||||
#pragma once
|
||||
|
||||
#include "SoundStream.h"
|
||||
#include "Thread.h"
|
||||
@ -76,5 +75,3 @@ public:
|
||||
{}
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif //_DSOUNDSTREAM_H_
|
||||
|
@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _MIXER_H_
|
||||
#define _MIXER_H_
|
||||
#pragma once
|
||||
|
||||
#include "WaveFile.h"
|
||||
#include "StdMutex.h"
|
||||
@ -106,5 +105,3 @@ protected:
|
||||
private:
|
||||
|
||||
};
|
||||
|
||||
#endif // _MIXER_H_
|
||||
|
@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _NULLSOUNDSTREAM_H_
|
||||
#define _NULLSOUNDSTREAM_H_
|
||||
#pragma once
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "SoundStream.h"
|
||||
@ -31,5 +30,3 @@ public:
|
||||
virtual bool usesMixer() const { return true; }
|
||||
virtual void Update();
|
||||
};
|
||||
|
||||
#endif //_NULLSOUNDSTREAM_H_
|
||||
|
@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _OPENALSTREAM_H_
|
||||
#define _OPENALSTREAM_H_
|
||||
#pragma once
|
||||
|
||||
#include "SoundStream.h"
|
||||
#include "Thread.h"
|
||||
@ -79,5 +78,3 @@ public:
|
||||
{}
|
||||
#endif // HAVE_OPENAL
|
||||
};
|
||||
|
||||
#endif // OPENALSTREAM
|
||||
|
@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _OPENSLSTREAM_H_
|
||||
#define _OPENSLSTREAM_H_
|
||||
#pragma once
|
||||
|
||||
#include "Thread.h"
|
||||
#include "SoundStream.h"
|
||||
@ -31,5 +30,3 @@ public:
|
||||
OpenSLESStream(CMixer *mixer, void *hWnd = NULL): SoundStream(mixer) {}
|
||||
#endif // HAVE_OPENSL
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _PULSE_AUDIO_STREAM_H
|
||||
#define _PULSE_AUDIO_STREAM_H
|
||||
#pragma once
|
||||
|
||||
#if defined(HAVE_PULSEAUDIO) && HAVE_PULSEAUDIO
|
||||
#include <pulse/pulseaudio.h>
|
||||
@ -61,5 +60,3 @@ public:
|
||||
PulseAudio(CMixer *mixer) : SoundStream(mixer) {}
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _SOUNDSTREAM_H_
|
||||
#define _SOUNDSTREAM_H_
|
||||
#pragma once
|
||||
|
||||
#include "Common.h"
|
||||
#include "Mixer.h"
|
||||
@ -55,5 +54,3 @@ public:
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
#endif // _SOUNDSTREAM_H_
|
||||
|
@ -12,8 +12,7 @@
|
||||
// If Stop is not called when it destructs, the destructor will call Stop().
|
||||
// ---------------------------------------------------------------------------------
|
||||
|
||||
#ifndef _WAVEFILE_H_
|
||||
#define _WAVEFILE_H_
|
||||
#pragma once
|
||||
|
||||
#include "FileUtil.h"
|
||||
|
||||
@ -41,5 +40,3 @@ public:
|
||||
void AddStereoSamplesBE(const short *sample_data, u32 count); // big endian
|
||||
u32 GetAudioSize() const { return audio_size; }
|
||||
};
|
||||
|
||||
#endif // _WAVEFILE_H_
|
||||
|
@ -1,5 +1,4 @@
|
||||
#ifndef ALDEVICELIST_H
|
||||
#define ALDEVICELIST_H
|
||||
#pragma once
|
||||
|
||||
#include "CommonTypes.h"
|
||||
#ifdef _WIN32
|
||||
@ -47,5 +46,3 @@ public:
|
||||
private:
|
||||
u32 GetMaxNumSources();
|
||||
};
|
||||
|
||||
#endif // ALDEVICELIST_H
|
||||
|
Reference in New Issue
Block a user