Files
dolphin/Source/Core/AudioCommon/SoundStream.h
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
596 B
C++
Raw Normal View History

// Copyright 2009 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
2015-05-24 04:13:02 -04:00
#include <memory>
2014-02-17 05:18:15 -05:00
#include "AudioCommon/Mixer.h"
2014-09-07 20:06:58 -05:00
#include "Common/CommonTypes.h"
class SoundStream
{
protected:
2017-06-26 14:41:12 -07:00
std::unique_ptr<Mixer> m_mixer;
public:
SoundStream() : m_mixer(new Mixer(48000)) {}
2015-05-24 04:13:02 -04:00
virtual ~SoundStream() {}
2021-08-08 00:23:58 +01:00
static bool IsValid() { return false; }
2017-06-26 14:41:12 -07:00
Mixer* GetMixer() const { return m_mixer.get(); }
virtual bool Init() { return false; }
virtual void SetVolume(int) {}
// Returns true if successful.
virtual bool SetRunning(bool running) { return false; }
};