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:
|
2017-06-26 21:41:12 +00:00
|
|
|
std::unique_ptr<Mixer> m_mixer;
|
2009-03-27 14:26:44 +00:00
|
|
|
|
2013-10-29 05:23:17 +00:00
|
|
|
public:
|
2017-10-21 19:34:51 +00:00
|
|
|
SoundStream() : m_mixer(new Mixer(48000)) {}
|
2016-06-24 08:43:46 +00:00
|
|
|
virtual ~SoundStream() {}
|
|
|
|
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; }
|
2016-06-24 08:43:46 +00:00
|
|
|
virtual void SetVolume(int) {}
|
|
|
|
virtual void SoundLoop() {}
|
|
|
|
virtual void Update() {}
|
2017-10-21 23:23:40 +00:00
|
|
|
virtual bool SetRunning(bool running) { return false; }
|
2009-02-23 06:17:57 +00:00
|
|
|
};
|