2015-05-24 06:55:12 +02:00
|
|
|
// Copyright 2009 Dolphin Emulator Project
|
2015-05-18 01:08:10 +02:00
|
|
|
// Licensed under GPLv2+
|
2013-04-18 05:09:55 +02:00
|
|
|
// Refer to the license.txt file included.
|
2009-02-23 07:17:57 +01:00
|
|
|
|
2014-02-10 19:54:46 +01:00
|
|
|
#pragma once
|
2009-02-23 07:17:57 +01:00
|
|
|
|
2015-05-24 10:13:02 +02:00
|
|
|
#include <memory>
|
|
|
|
|
2014-02-17 11:18:15 +01:00
|
|
|
#include "AudioCommon/Mixer.h"
|
2014-09-08 03:06:58 +02:00
|
|
|
#include "Common/CommonTypes.h"
|
2009-02-23 07:17:57 +01:00
|
|
|
|
|
|
|
class SoundStream
|
|
|
|
{
|
|
|
|
protected:
|
2017-06-26 23:41:12 +02:00
|
|
|
std::unique_ptr<Mixer> m_mixer;
|
2009-03-27 15:26:44 +01:00
|
|
|
|
2013-10-29 06:23:17 +01:00
|
|
|
public:
|
2017-10-21 21:34:51 +02:00
|
|
|
SoundStream() : m_mixer(new Mixer(48000)) {}
|
2016-06-24 10:43:46 +02:00
|
|
|
virtual ~SoundStream() {}
|
|
|
|
static bool isValid() { return false; }
|
2017-06-26 23:41:12 +02:00
|
|
|
Mixer* GetMixer() const { return m_mixer.get(); }
|
2017-10-22 01:23:40 +02:00
|
|
|
virtual bool Init() { return false; }
|
2016-06-24 10:43:46 +02:00
|
|
|
virtual void SetVolume(int) {}
|
|
|
|
virtual void SoundLoop() {}
|
|
|
|
virtual void Update() {}
|
2017-10-22 01:23:40 +02:00
|
|
|
virtual bool SetRunning(bool running) { return false; }
|
2009-02-23 07:17:57 +01:00
|
|
|
};
|