dolphin/Source/Core/AudioCommon/NullSoundStream.h

33 lines
727 B
C
Raw Normal View History

// 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 : public SoundStream
{
// playback position
short realtimeBuffer[BUF_SIZE / sizeof(short)];
public:
NullSound(CMixer *mixer)
: SoundStream(mixer)
{}
virtual ~NullSound() {}
2014-03-08 00:54:44 +00:00
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 bool usesMixer() const { return true; }
2014-03-08 00:54:44 +00:00
virtual void Update() override;
};