2015-05-24 06:55:12 +02:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2015-05-18 01:08:10 +02:00
|
|
|
// Licensed under GPLv2+
|
2013-04-21 08:17:03 +02:00
|
|
|
// Refer to the license.txt file included.
|
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
|
|
|
{
|
2013-02-26 20:49:00 +01:00
|
|
|
#ifdef ANDROID
|
|
|
|
public:
|
2016-06-24 10:43:46 +02:00
|
|
|
bool Start() override;
|
|
|
|
void Stop() override;
|
|
|
|
static bool isValid() { return true; }
|
2012-12-17 22:01:52 +01:00
|
|
|
private:
|
2016-06-24 10:43:46 +02:00
|
|
|
std::thread thread;
|
|
|
|
Common::Event soundSyncEvent;
|
|
|
|
#endif // HAVE_OPENSL
|
2012-12-17 22:01:52 +01:00
|
|
|
};
|