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