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