Mark the audio streams as final.
These aren't intended to be continually extended.
This commit is contained in:
parent
fab2808e5c
commit
5e5ab61d0c
|
@ -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;
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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)];
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -21,7 +21,7 @@ struct IXAudio2MasteringVoice;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class XAudio2 : public SoundStream
|
class XAudio2 final : public SoundStream
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ struct IXAudio2MasteringVoice;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class XAudio2_7 : public SoundStream
|
class XAudio2_7 final : public SoundStream
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue