mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
aecc8ea666
This isn't used anywhere in the codebase. Not even the base SoundStream has it as part of its interface.
32 lines
684 B
C++
32 lines
684 B
C++
// Copyright 2013 Dolphin Emulator Project
|
|
// Licensed under GPLv2
|
|
// Refer to the license.txt file included.
|
|
|
|
#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:
|
|
NullSound(CMixer *mixer)
|
|
: SoundStream(mixer)
|
|
{}
|
|
|
|
virtual ~NullSound() {}
|
|
|
|
virtual bool Start() override;
|
|
virtual void SoundLoop() override;
|
|
virtual void SetVolume(int volume) override;
|
|
virtual void Stop() override;
|
|
virtual void Clear(bool mute) override;
|
|
static bool isValid() { return true; }
|
|
virtual void Update() override;
|
|
};
|