dolphin/Source/Core/AudioCommon/OpenSLESStream.h

27 lines
567 B
C
Raw Normal View History

// Copyright 2008 Dolphin Emulator Project
2015-05-18 01:08:10 +02:00
// Licensed under GPLv2+
// Refer to the license.txt file included.
2012-12-17 22:01:52 +01:00
#pragma once
2012-12-26 19:12:26 +01:00
#include <thread>
#include "AudioCommon/SoundStream.h"
#include "Common/Event.h"
2012-12-17 22:01:52 +01:00
class OpenSLESStream final : public SoundStream
2012-12-17 22:01:52 +01:00
{
2013-02-26 20:49:00 +01:00
#ifdef ANDROID
public:
~OpenSLESStream() override;
bool Init() override;
bool SetRunning(bool running) override { return running; }
2019-11-24 21:34:50 +01:00
void SetVolume(int volume) override;
static bool isValid() { return true; }
2018-04-12 14:18:04 +02:00
2012-12-17 22:01:52 +01:00
private:
std::thread thread;
Common::Event soundSyncEvent;
#endif // HAVE_OPENSL
2012-12-17 22:01:52 +01:00
};