Skip to content

Commit

Permalink
Merge branch 'master' into rc_client
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamiras committed Aug 19, 2023
2 parents b845b77 + c512e02 commit 40f4c81
Show file tree
Hide file tree
Showing 207 changed files with 21,096 additions and 21,767 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ being able to do the expected tvOS behavior of "backing out" of the app.
- LIBRETRO: Add API to check JIT availability on iOS
- LIBRETRO: Allow RETRO_ENVIRONMENT_SET_MEMORY_MAPS also after core startup. Change the comment in libretro.h about the removed limit and handle the environment call during core runtime in RetroArch.
- LIBRETRO/MICROPHONE: Add new API for microphone support.
- LIBRETRO: Add new API for querying the device's power state.
- LINUX: Input driver fix 8+ joypads. It was reported that controllers beyond 8 worked only partially (analogs yes, but not buttons), and the found fix was also confirmed.
- MENU: Start directory browsing from current value
- MENU: Fix menu toggle combo hold with same 'enable_hotkey'
Expand Down
4 changes: 0 additions & 4 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,6 @@ OBJ += \
gfx/gfx_animation.o \
gfx/gfx_thumbnail_path.o \
gfx/gfx_thumbnail.o \
gfx/video_coord_array.o \
configuration.o \
$(LIBRETRO_COMM_DIR)/dynamic/dylib.o \
cores/dynamic_dummy.o \
Expand Down Expand Up @@ -449,9 +448,6 @@ endif
ifeq ($(HAVE_LANGEXTRA), 1)
DEFINES += -DHAVE_LANGEXTRA
DEF_FLAGS += -finput-charset=UTF-8

OBJ += intl/msg_hash_chs.o \
intl/msg_hash_pt_br.o
endif

ifneq ($(HAVE_GETOPT_LONG), 1)
Expand Down
1 change: 1 addition & 0 deletions Makefile.emscripten
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ endif
ifeq ($(HAVE_AL), 1)
LDFLAGS += -lopenal
DEFINES += -DHAVE_AL
ASYNC = 1
endif

ifneq ($(PTHREAD), 0)
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ RetroArch has been ported to the following platforms:
- PlayStation Portable
- PlayStation Vita
- Raspberry Pi
- ReactOS
- RetroFW
- RS90
- SerenityOS
Expand Down Expand Up @@ -335,7 +336,7 @@ The links below belong to our official channels. Links other than this may have
- [YouTube Topic](https://www.youtube.com/channel/UC5q007PYyQPgin0HHbzF0zQ)
- [Patreon](https://www.patreon.com/libretro)
- [BOUNTYSOURCE](https://www.bountysource.com/teams/libretro/issues)
- [Discord](https://discord.gg/27Xxm2h)
- [Discord](https://discord.com/invite/VZ2b7wghxR)
- [Teespring](https://teespring.com/stores/retroarch)
- [Documentation](https://docs.libretro.com/)
- [Forum](https://forums.libretro.com/)
53 changes: 26 additions & 27 deletions audio/audio_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ static bool audio_driver_free_devices_list(void)
{
audio_driver_state_t *audio_st = &audio_driver_st;
if (
!audio_st->current_audio
!audio_st->current_audio
|| !audio_st->current_audio->device_list_free
|| !audio_st->context_audio_data)
return false;
Expand Down Expand Up @@ -274,7 +274,7 @@ static void audio_driver_deinit_resampler(void)
static bool audio_driver_deinit_internal(bool audio_enable)
{
audio_driver_state_t *audio_st = &audio_driver_st;
if ( audio_st->current_audio
if ( audio_st->current_audio
&& audio_st->current_audio->free)
{
if (audio_st->context_audio_data)
Expand Down Expand Up @@ -412,7 +412,7 @@ static void audio_driver_flush(
struct resampler_data src_data;
float audio_volume_gain = (audio_st->mute_enable ||
(audio_fastforward_mute && is_fastforward))
? 0.0f
? 0.0f
: audio_st->volume_gain;

src_data.data_out = NULL;
Expand Down Expand Up @@ -462,7 +462,7 @@ static void audio_driver_flush(
{
/* Readjust the audio input rate. */
int half_size = (int)(audio_st->buffer_size / 2);

int avail =
(int)audio_st->current_audio->write_avail(
audio_st->context_audio_data);
Expand Down Expand Up @@ -526,7 +526,7 @@ static void audio_driver_flush(

audio_st->last_flush_time = flush_time;
}

audio_st->resampler->process(
audio_st->resampler_data, &src_data);

Expand All @@ -542,7 +542,7 @@ static void audio_driver_flush(
if (audio_st->mixer_volume_gain == 1.0f)
override = false;
mixer_gain = audio_st->mixer_volume_gain;

}
audio_mixer_mix(audio_st->output_samples_buf,
src_data.output_frames, mixer_gain, override);
Expand Down Expand Up @@ -710,7 +710,7 @@ bool audio_driver_init_internal(
audio_driver_st.context_audio_data))
audio_driver_st.flags |= AUDIO_FLAG_USE_FLOAT;

if ( !audio_sync
if ( !audio_sync
&& (audio_driver_st.flags & AUDIO_FLAG_ACTIVE))
{
if ( (audio_driver_st.flags & AUDIO_FLAG_ACTIVE)
Expand Down Expand Up @@ -835,16 +835,16 @@ void audio_driver_sample(int16_t left, int16_t right)
recording_st->driver->push_audio(recording_st->data, &ffemu_data);
}

if (!( (runloop_flags & RUNLOOP_FLAG_PAUSED)
if (!( (runloop_flags & RUNLOOP_FLAG_PAUSED)
|| !(audio_st->flags & AUDIO_FLAG_ACTIVE)
|| !(audio_st->output_samples_buf)))
audio_driver_flush(audio_st,
config_get_ptr()->floats.slowmotion_ratio,
config_get_ptr()->bools.audio_fastforward_mute,
audio_st->output_samples_conv_buf,
audio_st->data_ptr,
runloop_flags & RUNLOOP_FLAG_SLOWMOTION,
runloop_flags & RUNLOOP_FLAG_FASTMOTION);
(runloop_flags & RUNLOOP_FLAG_SLOWMOTION) ? true : false,
(runloop_flags & RUNLOOP_FLAG_FASTMOTION) ? true : false);

audio_st->data_ptr = 0;
}
Expand Down Expand Up @@ -893,8 +893,8 @@ size_t audio_driver_sample_batch(const int16_t *data, size_t frames)
config_get_ptr()->bools.audio_fastforward_mute,
data,
frames_to_write << 1,
runloop_flags & RUNLOOP_FLAG_SLOWMOTION,
runloop_flags & RUNLOOP_FLAG_FASTMOTION);
(runloop_flags & RUNLOOP_FLAG_SLOWMOTION) ? true : false,
(runloop_flags & RUNLOOP_FLAG_FASTMOTION) ? true : false);

frames_remaining -= frames_to_write;
data += frames_to_write << 1;
Expand Down Expand Up @@ -948,9 +948,8 @@ bool audio_driver_dsp_filter_init(const char *device)
retro_dsp_filter_t *audio_driver_dsp = NULL;
struct string_list *plugs = NULL;
#if defined(HAVE_DYLIB) && !defined(HAVE_FILTERS_BUILTIN)
char ext_name[32];
char ext_name[16];
char basedir[256];
ext_name[0] = '\0';
fill_pathname_basedir(basedir, device, sizeof(basedir));
if (!frontend_driver_get_core_extension(ext_name, sizeof(ext_name)))
return false;
Expand Down Expand Up @@ -1242,7 +1241,7 @@ bool audio_driver_mixer_add_stream(audio_mixer_stream_params_t *params)
* so have to do it here */
free(buf);
buf = NULL;
break;
break;
case AUDIO_MIXER_TYPE_OGG:
handle = audio_mixer_load_ogg(buf, (int32_t)params->bufsize);
break;
Expand Down Expand Up @@ -1623,16 +1622,16 @@ bool audio_driver_callback(void)
{
settings_t *settings = config_get_ptr();
uint32_t runloop_flags = runloop_get_flags();
bool runloop_paused = runloop_flags & RUNLOOP_FLAG_PAUSED;
bool runloop_paused = (runloop_flags & RUNLOOP_FLAG_PAUSED) ? true : false;
#ifdef HAVE_MENU
#ifdef HAVE_NETWORKING
bool core_paused = runloop_paused ||
( settings->bools.menu_pause_libretro
bool core_paused = runloop_paused
|| (settings->bools.menu_pause_libretro
&& (menu_state_get_ptr()->flags & MENU_ST_FLAG_ALIVE)
&& netplay_driver_ctl(RARCH_NETPLAY_CTL_ALLOW_PAUSE, NULL));
#else
bool core_paused = runloop_paused ||
(settings->bools.menu_pause_libretro
bool core_paused = runloop_paused
|| (settings->bools.menu_pause_libretro
&& (menu_state_get_ptr()->flags & MENU_ST_FLAG_ALIVE));
#endif
#else
Expand Down Expand Up @@ -1667,7 +1666,7 @@ bool audio_driver_start(bool is_shutdown)
{
audio_driver_state_t *audio_st = &audio_driver_st;
if (
!audio_st->current_audio
!audio_st->current_audio
|| !audio_st->current_audio->start
|| !audio_st->context_audio_data)
goto error;
Expand Down Expand Up @@ -1744,8 +1743,8 @@ void audio_driver_frame_is_reverse(void)
audio_st->rewind_ptr,
audio_st->rewind_size -
audio_st->rewind_ptr,
runloop_flags & RUNLOOP_FLAG_SLOWMOTION,
runloop_flags & RUNLOOP_FLAG_FASTMOTION);
(runloop_flags & RUNLOOP_FLAG_SLOWMOTION) ? true : false,
(runloop_flags & RUNLOOP_FLAG_FASTMOTION) ? true : false);
}
}
#endif
Expand Down Expand Up @@ -1909,8 +1908,8 @@ void audio_driver_menu_sample(void)
settings->bools.audio_fastforward_mute,
samples_buf,
1024,
runloop_flags & RUNLOOP_FLAG_SLOWMOTION,
runloop_flags & RUNLOOP_FLAG_FASTMOTION);
(runloop_flags & RUNLOOP_FLAG_SLOWMOTION) ? true : false,
(runloop_flags & RUNLOOP_FLAG_FASTMOTION) ? true : false);
sample_count -= 1024;
}
if ( recording_st->data &&
Expand All @@ -1931,7 +1930,7 @@ void audio_driver_menu_sample(void)
settings->bools.audio_fastforward_mute,
samples_buf,
sample_count,
runloop_flags & RUNLOOP_FLAG_SLOWMOTION,
runloop_flags & RUNLOOP_FLAG_FASTMOTION);
(runloop_flags & RUNLOOP_FLAG_SLOWMOTION) ? true : false,
(runloop_flags & RUNLOOP_FLAG_FASTMOTION) ? true : false);
}
#endif
Loading

0 comments on commit 40f4c81

Please sign in to comment.