mirror of
https://github.com/libretro/RetroArch
synced 2025-02-04 03:40:03 +00:00
(retroarch.c) Replace some fprintf to stderr with RARCH_ERR
This commit is contained in:
parent
aa054f76a3
commit
79a75a43db
@ -399,7 +399,7 @@ static bool audio_flush(const int16_t *data, size_t samples)
|
|||||||
|
|
||||||
if (audio_write_func(output_data, output_frames * sizeof(int16_t) * 2) < 0)
|
if (audio_write_func(output_data, output_frames * sizeof(int16_t) * 2) < 0)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "RetroArch [ERROR]: Audio backend failed to write. Will continue without sound.\n");
|
RARCH_ERR("Audio backend failed to write. Will continue without sound.\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
@ -408,7 +408,7 @@ static bool audio_flush(const int16_t *data, size_t samples)
|
|||||||
if (audio_write_func(g_extern.audio_data.mute ? empty_buf.f : output_data,
|
if (audio_write_func(g_extern.audio_data.mute ? empty_buf.f : output_data,
|
||||||
output_frames * sizeof(float) * 2) < 0)
|
output_frames * sizeof(float) * 2) < 0)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "RetroArch [ERROR]: Audio backend failed to write. Will continue without sound.\n");
|
RARCH_ERR("Audio backend failed to write. Will continue without sound.\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -423,7 +423,7 @@ static bool audio_flush(const int16_t *data, size_t samples)
|
|||||||
if (audio_write_func(g_extern.audio_data.mute ? empty_buf.i : g_extern.audio_data.conv_outsamples,
|
if (audio_write_func(g_extern.audio_data.mute ? empty_buf.i : g_extern.audio_data.conv_outsamples,
|
||||||
output_frames * sizeof(int16_t) * 2) < 0)
|
output_frames * sizeof(int16_t) * 2) < 0)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "RetroArch [ERROR]: Audio backend failed to write. Will continue without sound.\n");
|
RARCH_ERR("Audio backend failed to write. Will continue without sound.\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user