NullSound: Replace header define with private constant

This commit is contained in:
Lioncash 2015-12-05 14:31:36 -05:00
parent 7134d727bf
commit 0d4baa0744
1 changed files with 6 additions and 6 deletions

View File

@ -4,16 +4,10 @@
#pragma once
#include <cstdlib>
#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)];
};