mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-05 09:05:54 +00:00
NullSound: Replace header define with private constant
This commit is contained in:
parent
7134d727bf
commit
0d4baa0744
1 changed files with 6 additions and 6 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue