mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-21 11:37:14 +01:00
NullSound: Replace header define with private constant
This commit is contained in:
parent
7134d727bf
commit
0d4baa0744
@ -4,16 +4,10 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <cstdlib>
|
|
||||||
#include "AudioCommon/SoundStream.h"
|
#include "AudioCommon/SoundStream.h"
|
||||||
|
|
||||||
#define BUF_SIZE (48000 * 4 / 32)
|
|
||||||
|
|
||||||
class NullSound final : public SoundStream
|
class NullSound final : public SoundStream
|
||||||
{
|
{
|
||||||
// playback position
|
|
||||||
short realtimeBuffer[BUF_SIZE / sizeof(short)];
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
bool Start() override;
|
bool Start() override;
|
||||||
void SoundLoop() override;
|
void SoundLoop() override;
|
||||||
@ -23,4 +17,10 @@ public:
|
|||||||
void Update() override;
|
void Update() override;
|
||||||
|
|
||||||
static bool isValid() { return true; }
|
static bool isValid() { return true; }
|
||||||
|
|
||||||
|
private:
|
||||||
|
static constexpr size_t BUFFER_SIZE = 48000 * 4 / 32;
|
||||||
|
|
||||||
|
// Playback position
|
||||||
|
short realtimeBuffer[BUFFER_SIZE / sizeof(short)];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user