dolphin/Source/Core/AudioCommon/OpenSLESStream.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
541 B
C
Raw Normal View History

// Copyright 2008 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
2012-12-17 21:01:52 +00:00
#pragma once
2012-12-26 18:12:26 +00:00
#include <thread>
#include "AudioCommon/SoundStream.h"
#include "Common/Event.h"
2012-12-17 21:01:52 +00:00
class OpenSLESStream final : public SoundStream
2012-12-17 21:01:52 +00:00
{
2013-02-26 19:49:00 +00:00
#ifdef ANDROID
public:
~OpenSLESStream() override;
bool Init() override;
bool SetRunning(bool running) override { return true; }
2019-11-24 20:34:50 +00:00
void SetVolume(int volume) override;
static bool IsValid() { return true; }
2018-04-12 12:18:04 +00:00
2012-12-17 21:01:52 +00:00
private:
2013-02-26 19:49:00 +00:00
std::thread thread;
Common::Event soundSyncEvent;
#endif // HAVE_OPENSL
2012-12-17 21:01:52 +00:00
};