SoundStream.h 596 B

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