copy from source/src/video/mir/SDL_mirevents.h
copy to source/src/audio/openslES/SDL_openslES.h
| File was copied from source/src/video/mir/SDL_mirevents.h |
| | |
| | | /* |
| | | Simple DirectMedia Layer |
| | | Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org> |
| | | Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org> |
| | | |
| | | This software is provided 'as-is', without any express or implied |
| | | warranty. In no event will the authors be held liable for any damages |
| | |
| | | misrepresented as being the original software. |
| | | 3. This notice may not be removed or altered from any source distribution. |
| | | */ |
| | | #include "../../SDL_internal.h" |
| | | |
| | | /* |
| | | Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com> |
| | | */ |
| | | #ifndef _SDL_openslesaudio_h |
| | | #define _SDL_openslesaudio_h |
| | | |
| | | #ifndef SDL_mirevents_h_ |
| | | #define SDL_mirevents_h_ |
| | | #include "../SDL_sysaudio.h" |
| | | |
| | | #include <mir_toolkit/mir_client_library.h> |
| | | /* Hidden "this" pointer for the audio functions */ |
| | | #define _THIS SDL_AudioDevice *this |
| | | |
| | | extern void |
| | | MIR_HandleEvent(MirWindow*, MirEvent const* ev, void* context); |
| | | #define NUM_BUFFERS 2 /* -- Don't lower this! */ |
| | | |
| | | #endif /* SDL_mirevents_h_ */ |
| | | struct SDL_PrivateAudioData |
| | | { |
| | | Uint8 *mixbuff; |
| | | int next_buffer; |
| | | Uint8 *pmixbuff[NUM_BUFFERS]; |
| | | SDL_sem *playsem; |
| | | }; |
| | | |
| | | void openslES_ResumeDevices(void); |
| | | void openslES_PauseDevices(void); |
| | | |
| | | #endif /* _SDL_openslesaudio_h */ |
| | | |
| | | /* vi: set ts=4 sw=4 expandtab: */ |
| | | |