dolphin/Source/Core/AudioCommon/OpenSLESStream.h

24 lines
461 B
C
Raw Normal View History

// Copyright 2008 Dolphin Emulator Project
2015-05-17 17:08:10 -06:00
// Licensed under GPLv2+
// Refer to the license.txt file included.
2012-12-17 14:01:52 -07:00
#pragma once
2012-12-26 11:12:26 -07:00
#include <thread>
#include "AudioCommon/SoundStream.h"
#include "Common/Event.h"
2012-12-17 14:01:52 -07: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:
bool Start() override;
void Stop() override;
static bool isValid() { return true; }
2012-12-17 14:01:52 -07:00
private:
std::thread thread;
Common::Event soundSyncEvent;
#endif // HAVE_OPENSL
2012-12-17 14:01:52 -07:00
};