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