2015-05-24 06:55:12 +02:00
|
|
|
// Copyright 2009 Dolphin Emulator Project
|
2021-07-05 03:22:19 +02:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2009-02-23 06:17:57 +00:00
|
|
|
|
2014-02-10 13:54:46 -05:00
|
|
|
#pragma once
|
2009-02-23 06:17:57 +00:00
|
|
|
|
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"
|
2009-02-23 06:17:57 +00:00
|
|
|
|
|
|
|
class SoundStream
|
|
|
|
{
|
|
|
|
protected:
|
2017-06-26 14:41:12 -07:00
|
|
|
std::unique_ptr<Mixer> m_mixer;
|
2009-03-27 14:26:44 +00:00
|
|
|
|
2009-02-23 06:17:57 +00:00
|
|
|
public:
|
2017-10-21 12:34:51 -07:00
|
|
|
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(); }
|
2017-10-21 16:23:40 -07:00
|
|
|
virtual bool Init() { return false; }
|
2009-05-18 19:24:46 +00:00
|
|
|
virtual void SetVolume(int) {}
|
2021-08-07 21:27:49 +01:00
|
|
|
// Returns true if successful.
|
2017-10-21 16:23:40 -07:00
|
|
|
virtual bool SetRunning(bool running) { return false; }
|
2009-02-23 06:17:57 +00:00
|
|
|
};
|