Debian Codegraph @

Source/Core/AudioCommon/SoundStream.h

raw symbols SCIP
1 // Copyright 2009 Dolphin Emulator Project
2 // SPDX-License-Identifier: GPL-2.0-or-later
3
4 #pragma once
5
6 #include <memory>
7
8 #include "AudioCommon/Mixer.h"
9 #include "Common/CommonTypes.h"
10
11 class SoundStream
12 {
13 protected:
14 std::unique_ptr<Mixer> m_mixer;
15
16 public:
17 SoundStream() : m_mixer(new Mixer(48000)) {}
18 virtual ~SoundStream() {}
19 static bool IsValid() { return false; }
20 Mixer* GetMixer() const { return m_mixer.get(); }
21 virtual bool Init() { return false; }
22 virtual void SetVolume(int) {}
23 // Returns true if successful.
24 virtual bool SetRunning(bool running) { return false; }
25 };