dolphin/Source/Core/AudioCommon/OpenSLESStream.h

25 lines
456 B
C
Raw Normal View History

// Copyright 2013 Dolphin Emulator Project
2015-05-17 23:08:10 +00:00
// Licensed under GPLv2+
// Refer to the license.txt file included.
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:
bool Start() override;
void Stop() override;
2013-02-26 19:49:00 +00:00
static bool isValid() { return true; }
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
};