From 0d4baa0744be1405168782122832f563a6a3bd84 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 5 Dec 2015 14:31:36 -0500 Subject: [PATCH] NullSound: Replace header define with private constant --- Source/Core/AudioCommon/NullSoundStream.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/Core/AudioCommon/NullSoundStream.h b/Source/Core/AudioCommon/NullSoundStream.h index 0acdd3274a..b74194b556 100644 --- a/Source/Core/AudioCommon/NullSoundStream.h +++ b/Source/Core/AudioCommon/NullSoundStream.h @@ -4,16 +4,10 @@ #pragma once -#include #include "AudioCommon/SoundStream.h" -#define BUF_SIZE (48000 * 4 / 32) - class NullSound final : public SoundStream { - // playback position - short realtimeBuffer[BUF_SIZE / sizeof(short)]; - public: bool Start() override; void SoundLoop() override; @@ -23,4 +17,10 @@ public: void Update() override; static bool isValid() { return true; } + +private: + static constexpr size_t BUFFER_SIZE = 48000 * 4 / 32; + + // Playback position + short realtimeBuffer[BUFFER_SIZE / sizeof(short)]; };