mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
27 lines
572 B
C++
27 lines
572 B
C++
// Copyright 2008 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include "AudioCommon/SoundStream.h"
|
|
|
|
class NullSound final : public SoundStream
|
|
{
|
|
public:
|
|
bool Start() override;
|
|
void SoundLoop() override;
|
|
void SetVolume(int volume) override;
|
|
void Stop() override;
|
|
void Clear(bool mute) override;
|
|
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)];
|
|
};
|