Skip to content
Snippets Groups Projects
Commit 65f90289 authored by deuce's avatar deuce
Browse files

Fix some warnings.

parent 32be7c27
Branches
Tags
No related merge requests found
...@@ -73,6 +73,7 @@ static pthread_mutex_t handle_mutex; ...@@ -73,6 +73,7 @@ static pthread_mutex_t handle_mutex;
static const unsigned char *sample_buffer; static const unsigned char *sample_buffer;
static int samples_posted; static int samples_posted;
static size_t sample_size; static size_t sample_size;
#endif #endif
static BOOL sound_device_open_failed=FALSE; static BOOL sound_device_open_failed=FALSE;
...@@ -134,7 +135,7 @@ struct portaudio_api_struct *pa_api=NULL; ...@@ -134,7 +135,7 @@ struct portaudio_api_struct *pa_api=NULL;
static SDL_AudioSpec spec; static SDL_AudioSpec spec;
static int sdl_audio_buf_len=0; static int sdl_audio_buf_len=0;
static int sdl_audio_buf_pos=0; static int sdl_audio_buf_pos=0;
static unsigned char *swave; static const unsigned char *swave;
static SDL_sem *sdlToneDone; static SDL_sem *sdlToneDone;
#endif #endif
...@@ -337,7 +338,7 @@ void DLLCALL sdl_fillbuf(void *userdata, Uint8 *stream, int len) ...@@ -337,7 +338,7 @@ void DLLCALL sdl_fillbuf(void *userdata, Uint8 *stream, int len)
sdl.SemPost(sdlToneDone); sdl.SemPost(sdlToneDone);
sdl_audio_buf_len=0; sdl_audio_buf_len=0;
sdl_audio_buf_pos=0; sdl_audio_buf_pos=0;
free(swave); free((void *)swave);
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment