1 /*
2  * Copyright (C) 2015-2017 Alibaba Group Holding Limited
3  */
4 #include "../../SDL_internal.h"
5 
6 #ifndef SDL_AOS_audio_h_
7 #define SDL_AOS_audio_h_
8 
9 #include "sound_pcm.h"
10 
11 #include "../SDL_sysaudio.h"
12 
13 /* Hidden "this" pointer for the audio functions */
14 #define _THIS   SDL_AudioDevice *this
15 
16 #define NUM_BUFFERS 2
17 
18 struct SDL_PrivateAudioData
19 {
20     /* The audio device handle */
21     snd_pcm_t *pcm_handle;
22 
23     /* Raw mixing buffer */
24     Uint8 *mixbuf;
25     int mixlen;
26 
27     /* swizzle function */
28     void (*swizzle_func)(_THIS, void *buffer, Uint32 bufferlen);
29 };
30 
31 #endif /* SDL_AOS_audio_h_ */
32 
33 /* vi: set ts=4 sw=4 expandtab: */
34