mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 13:20:30 +00:00
parent
621c3a7b7e
commit
b4ef32cfce
@ -111,10 +111,7 @@ HAVE_CHEATS = 1
|
|||||||
HAVE_CHEEVOS = 0
|
HAVE_CHEEVOS = 0
|
||||||
HAVE_LIBSHAKE = 0
|
HAVE_LIBSHAKE = 0
|
||||||
HAVE_CORE_INFO_CACHE = 1
|
HAVE_CORE_INFO_CACHE = 1
|
||||||
|
HAVE_OSS =1
|
||||||
#comment out for now not working
|
|
||||||
#HAVE_OSS =1
|
|
||||||
#HAVE_OSS_LIB =1
|
|
||||||
|
|
||||||
OS = Linux
|
OS = Linux
|
||||||
TARGET = retroarch
|
TARGET = retroarch
|
||||||
@ -139,6 +136,7 @@ DEFINES := -DRARCH_INTERNAL -D_FILE_OFFSET_BITS=64 -UHAVE_STATIC_DUMMY
|
|||||||
DEFINES += -DHAVE_C99=1 -DHAVE_CXX=1
|
DEFINES += -DHAVE_C99=1 -DHAVE_CXX=1
|
||||||
DEFINES += -DHAVE_GETOPT_LONG=1 -DHAVE_STRCASESTR=1 -DHAVE_DYNAMIC=1
|
DEFINES += -DHAVE_GETOPT_LONG=1 -DHAVE_STRCASESTR=1 -DHAVE_DYNAMIC=1
|
||||||
DEFINES += -DHAVE_FILTERS_BUILTIN
|
DEFINES += -DHAVE_FILTERS_BUILTIN
|
||||||
|
DEFINES += -DHAVE_OSS=1
|
||||||
|
|
||||||
SDL_DINGUX_CFLAGS := $(shell $(GCW0_SDL_CONFIG) --cflags)
|
SDL_DINGUX_CFLAGS := $(shell $(GCW0_SDL_CONFIG) --cflags)
|
||||||
SDL_DINGUX_LIBS := $(shell $(GCW0_SDL_CONFIG) --libs)
|
SDL_DINGUX_LIBS := $(shell $(GCW0_SDL_CONFIG) --libs)
|
||||||
|
@ -126,8 +126,10 @@ static bool oss_stop(void *data)
|
|||||||
{
|
{
|
||||||
oss_audio_t *ossaudio = (oss_audio_t*)data;
|
oss_audio_t *ossaudio = (oss_audio_t*)data;
|
||||||
|
|
||||||
|
#if !defined(RETROFW)
|
||||||
if (ioctl(ossaudio->fd, SNDCTL_DSP_RESET, 0) < 0)
|
if (ioctl(ossaudio->fd, SNDCTL_DSP_RESET, 0) < 0)
|
||||||
return false;
|
return false;
|
||||||
|
#endif
|
||||||
|
|
||||||
ossaudio->is_paused = true;
|
ossaudio->is_paused = true;
|
||||||
return true;
|
return true;
|
||||||
@ -167,8 +169,11 @@ static void oss_free(void *data)
|
|||||||
{
|
{
|
||||||
oss_audio_t *ossaudio = (oss_audio_t*)data;
|
oss_audio_t *ossaudio = (oss_audio_t*)data;
|
||||||
|
|
||||||
|
/*RETROFW IOCTL always returns EINVAL*/
|
||||||
|
#if !defined(RETROFW)
|
||||||
if (ioctl(ossaudio->fd, SNDCTL_DSP_RESET, 0) < 0)
|
if (ioctl(ossaudio->fd, SNDCTL_DSP_RESET, 0) < 0)
|
||||||
return;
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
close(ossaudio->fd);
|
close(ossaudio->fd);
|
||||||
free(data);
|
free(data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user