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> #include <ao/ao.h>
#endif #endif
class AOSound : public SoundStream class AOSound final : public SoundStream
{ {
#if defined(HAVE_AO) && HAVE_AO #if defined(HAVE_AO) && HAVE_AO
std::thread thread; std::thread thread;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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