2015-05-24 04:55:12 +00:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2015-05-17 23:08:10 +00:00
|
|
|
// Licensed under GPLv2+
|
2013-04-21 06:17:03 +00:00
|
|
|
// Refer to the license.txt file included.
|
2012-12-17 21:01:52 +00:00
|
|
|
|
2014-02-10 18:54:46 +00:00
|
|
|
#pragma once
|
2012-12-26 18:12:26 +00:00
|
|
|
|
2014-08-14 05:14:35 +00:00
|
|
|
#include <thread>
|
|
|
|
|
2014-02-17 10:18:15 +00:00
|
|
|
#include "AudioCommon/SoundStream.h"
|
2014-04-13 23:15:23 +00:00
|
|
|
#include "Common/Event.h"
|
2012-12-17 21:01:52 +00:00
|
|
|
|
2014-03-18 14:37:45 +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:
|
2016-06-24 08:43:46 +00:00
|
|
|
bool Start() override;
|
|
|
|
void Stop() override;
|
|
|
|
static bool isValid() { return true; }
|
2012-12-17 21:01:52 +00:00
|
|
|
private:
|
2016-06-24 08:43:46 +00:00
|
|
|
std::thread thread;
|
|
|
|
Common::Event soundSyncEvent;
|
|
|
|
#endif // HAVE_OPENSL
|
2012-12-17 21:01:52 +00:00
|
|
|
};
|