Android/openslES: move a few static variables to SDL_PrivateAudioData structure

This commit is contained in:
Sylvain Becker
2019-01-14 10:58:57 +01:00
parent 5aeeaaab70
commit 59c8c7b684
2 changed files with 127 additions and 116 deletions

View File

@@ -28,13 +28,18 @@
/* Hidden "this" pointer for the audio functions */
#define _THIS SDL_AudioDevice *this
#define NUM_BUFFERS 2 /* -- Don't lower this! */
struct SDL_PrivateAudioData
{
/* The file descriptor for the audio device */
Uint8 *mixbuf;
Uint32 mixlen;
Uint32 write_delay;
Uint32 initial_calls;
Uint8 *mixbuff;
int next_buffer;
Uint8 *pmixbuff[NUM_BUFFERS];
SDL_sem *playsem;
#if 0
SDL_sem *recsem;
#endif
};
#endif /* _SDL_openslesaudio_h */