mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-22 09:51:01 +00:00
Fixed bug 3516 - fix build on illumos
Sylvain trivial patch to fix the build on illumos -Werror=declaration-after-statement https://gist.github.com/wiedi/15b71456667f7aa2a7f8815663723bb3
This commit is contained in:
parent
fd85f5748d
commit
9492492d5f
|
@ -193,6 +193,10 @@ SUNAUDIO_CloseDevice(_THIS)
|
||||||
static int
|
static int
|
||||||
SUNAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscapture)
|
SUNAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscapture)
|
||||||
{
|
{
|
||||||
|
#ifdef AUDIO_SETINFO
|
||||||
|
int enc;
|
||||||
|
#endif
|
||||||
|
int desired_freq = 0;
|
||||||
const int flags = ((iscapture) ? OPEN_FLAGS_INPUT : OPEN_FLAGS_OUTPUT);
|
const int flags = ((iscapture) ? OPEN_FLAGS_INPUT : OPEN_FLAGS_OUTPUT);
|
||||||
SDL_AudioFormat format = 0;
|
SDL_AudioFormat format = 0;
|
||||||
audio_info_t info;
|
audio_info_t info;
|
||||||
|
@ -220,10 +224,7 @@ SUNAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscapture)
|
||||||
return SDL_SetError("Couldn't open %s: %s", devname, strerror(errno));
|
return SDL_SetError("Couldn't open %s: %s", devname, strerror(errno));
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef AUDIO_SETINFO
|
desired_freq = this->spec.freq;
|
||||||
int enc;
|
|
||||||
#endif
|
|
||||||
int desired_freq = this->spec.freq;
|
|
||||||
|
|
||||||
/* Determine the audio parameters from the AudioSpec */
|
/* Determine the audio parameters from the AudioSpec */
|
||||||
switch (SDL_AUDIO_BITSIZE(this->spec.format)) {
|
switch (SDL_AUDIO_BITSIZE(this->spec.format)) {
|
||||||
|
|
Loading…
Reference in a new issue