2015-05-24 04:55:12 +00:00
|
|
|
// Copyright 2009 Dolphin Emulator Project
|
2015-05-17 23:08:10 +00:00
|
|
|
// Licensed under GPLv2+
|
2013-04-18 03:09:55 +00:00
|
|
|
// Refer to the license.txt file included.
|
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
|
|
|
|
|
|
|
class SoundStream
|
|
|
|
{
|
|
|
|
protected:
|
2016-06-24 08:43:46 +00:00
|
|
|
std::unique_ptr<CMixer> m_mixer;
|
|
|
|
bool m_muted;
|
2009-03-27 14:26:44 +00:00
|
|
|
|
2013-10-29 05:23:17 +00:00
|
|
|
public:
|
2017-01-23 03:09:35 +00:00
|
|
|
SoundStream() : m_mixer(new CMixer(48000)), m_muted(false) {}
|
2016-06-24 08:43:46 +00:00
|
|
|
virtual ~SoundStream() {}
|
|
|
|
static bool isValid() { return false; }
|
|
|
|
CMixer* GetMixer() const { return m_mixer.get(); }
|
|
|
|
virtual bool Start() { return false; }
|
|
|
|
virtual void SetVolume(int) {}
|
|
|
|
virtual void SoundLoop() {}
|
|
|
|
virtual void Stop() {}
|
|
|
|
virtual void Update() {}
|
|
|
|
virtual void Clear(bool mute) { m_muted = mute; }
|
|
|
|
bool IsMuted() const { return m_muted; }
|
2009-02-23 06:17:57 +00:00
|
|
|
};
|