2015-05-24 06:55:12 +02:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2021-07-05 03:22:19 +02:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2012-12-17 22:01:52 +01:00
|
|
|
|
2014-02-10 19:54:46 +01:00
|
|
|
#pragma once
|
2012-12-26 19:12:26 +01:00
|
|
|
|
2014-08-14 07:14:35 +02:00
|
|
|
#include <thread>
|
|
|
|
|
2014-02-17 11:18:15 +01:00
|
|
|
#include "AudioCommon/SoundStream.h"
|
2014-04-14 01:15:23 +02:00
|
|
|
#include "Common/Event.h"
|
2012-12-17 22:01:52 +01:00
|
|
|
|
2014-03-18 15:37:45 +01:00
|
|
|
class OpenSLESStream final : public SoundStream
|
2012-12-17 22:01:52 +01:00
|
|
|
{
|
2022-08-08 01:17:41 +02:00
|
|
|
#ifdef HAVE_OPENSL_ES
|
2013-02-26 20:49:00 +01:00
|
|
|
public:
|
2017-10-22 01:23:40 +02:00
|
|
|
~OpenSLESStream() override;
|
|
|
|
bool Init() override;
|
2021-08-07 22:27:49 +02:00
|
|
|
bool SetRunning(bool running) override { return true; }
|
2019-11-24 21:34:50 +01:00
|
|
|
void SetVolume(int volume) override;
|
2021-08-08 01:23:58 +02:00
|
|
|
static bool IsValid() { return true; }
|
2018-04-12 14:18:04 +02:00
|
|
|
|
2012-12-17 22:01:52 +01:00
|
|
|
private:
|
2013-02-26 20:49:00 +01:00
|
|
|
std::thread thread;
|
|
|
|
Common::Event soundSyncEvent;
|
2022-08-08 01:17:41 +02:00
|
|
|
#endif // HAVE_OPENSL_ES
|
2012-12-17 22:01:52 +01:00
|
|
|
};
|