2021-03-02 02:13:17 +00:00
|
|
|
// Project64 - A Nintendo 64 emulator
|
|
|
|
// http://www.pj64-emu.com/
|
|
|
|
// Copyright(C) 2001-2021 Project64.
|
|
|
|
// Copyright(C) 2015 Gilles Siberlin
|
|
|
|
// Copyright(C) 2007 - 2009 Richard Goedeken
|
|
|
|
// Copyright(C) 2007 - 2008 Ebenblues
|
|
|
|
// Copyright(C) 2003 JttL
|
|
|
|
// Copyright(C) 2002 Hacktarux
|
|
|
|
// GNU/GPLv2 licensed: https://gnu.org/licenses/gpl-2.0.html
|
2021-03-27 09:09:55 +00:00
|
|
|
|
2017-09-12 07:58:35 +00:00
|
|
|
#pragma once
|
2017-09-20 07:24:54 +00:00
|
|
|
#include <Common/SyncEvent.h>
|
2017-09-13 07:41:52 +00:00
|
|
|
#include <Project64-audio/Audio_1.1.h>
|
2017-09-12 07:58:35 +00:00
|
|
|
#include "SoundBase.h"
|
|
|
|
|
|
|
|
class OpenSLESDriver :
|
|
|
|
public SoundDriverBase
|
|
|
|
{
|
2017-09-13 07:41:52 +00:00
|
|
|
public:
|
2017-09-14 08:07:12 +00:00
|
|
|
void AI_Startup(void);
|
2017-09-13 07:41:52 +00:00
|
|
|
void AI_Shutdown(void);
|
2017-10-24 10:53:34 +00:00
|
|
|
void AI_SetFrequency(uint32_t freq, uint32_t BufferSize);
|
2017-09-13 07:41:52 +00:00
|
|
|
void AI_LenChanged(uint8_t *start, uint32_t length);
|
2017-09-20 07:24:54 +00:00
|
|
|
void AI_Update(bool Wait);
|
|
|
|
|
|
|
|
private:
|
|
|
|
SyncEvent m_AiUpdateEvent;
|
2021-03-27 09:09:55 +00:00
|
|
|
};
|