Mark the audio streams as final.

These aren't intended to be continually extended.
This commit is contained in:
lioncash 2014-03-18 10:37:45 -04:00
parent fab2808e5c
commit 5e5ab61d0c
10 changed files with 10 additions and 10 deletions

View file

@ -11,7 +11,7 @@
#include <ao/ao.h>
#endif
class AOSound : public SoundStream
class AOSound final : public SoundStream
{
#if defined(HAVE_AO) && HAVE_AO
std::thread thread;

View file

@ -12,7 +12,7 @@
#include "Common/Common.h"
#include "Common/Thread.h"
class AlsaSound : public SoundStream
class AlsaSound final : public SoundStream
{
#if defined(HAVE_ALSA) && HAVE_ALSA
public:

View file

@ -10,7 +10,7 @@
#include "AudioCommon/SoundStream.h"
class CoreAudioSound : public SoundStream
class CoreAudioSound final : public SoundStream
{
#ifdef __APPLE__
public:

View file

@ -15,7 +15,7 @@
#define BUFSIZE (1024 * 8 * 4)
#endif
class DSound : public SoundStream
class DSound final : public SoundStream
{
#ifdef _WIN32
std::thread thread;

View file

@ -9,7 +9,7 @@
#define BUF_SIZE (48000 * 4 / 32)
class NullSound : public SoundStream
class NullSound final : public SoundStream
{
// playback position
short realtimeBuffer[BUF_SIZE / sizeof(short)];

View file

@ -40,7 +40,7 @@
#define FRAME_SURROUND_FLOAT SURROUND_CHANNELS * SIZE_FLOAT
#endif
class OpenALStream: public SoundStream
class OpenALStream final : public SoundStream
{
#if defined HAVE_OPENAL && HAVE_OPENAL
public:

View file

@ -7,7 +7,7 @@
#include "AudioCommon/SoundStream.h"
#include "Common/Thread.h"
class OpenSLESStream : public SoundStream
class OpenSLESStream final : public SoundStream
{
#ifdef ANDROID
public:

View file

@ -14,7 +14,7 @@
#include "Common/Common.h"
#include "Common/Thread.h"
class PulseAudio : public SoundStream
class PulseAudio final : public SoundStream
{
#if defined(HAVE_PULSEAUDIO) && HAVE_PULSEAUDIO
public:

View file

@ -21,7 +21,7 @@ struct IXAudio2MasteringVoice;
#endif
class XAudio2 : public SoundStream
class XAudio2 final : public SoundStream
{
#ifdef _WIN32

View file

@ -26,7 +26,7 @@ struct IXAudio2MasteringVoice;
#endif
class XAudio2_7 : public SoundStream
class XAudio2_7 final : public SoundStream
{
#ifdef _WIN32