mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 18:32:44 +00:00
Silence some warnings
This commit is contained in:
parent
bb30dc3dee
commit
93e5fc60af
@ -328,14 +328,21 @@ audio_mixer_sound_t* audio_mixer_load_wav(void *buffer, int32_t size)
|
||||
#ifdef HAVE_RWAV
|
||||
/* WAV data */
|
||||
rwav_t wav;
|
||||
enum rwav_state rwav_ret;
|
||||
/* WAV samples converted to float */
|
||||
float* pcm = NULL;
|
||||
size_t samples = 0;
|
||||
/* Result */
|
||||
audio_mixer_sound_t* sound = NULL;
|
||||
enum rwav_state rwav_ret = rwav_load(&wav, buffer, size);
|
||||
|
||||
if (rwav_ret != RWAV_ITERATE_DONE)
|
||||
wav.bitspersample = 0;
|
||||
wav.numchannels = 0;
|
||||
wav.samplerate = 0;
|
||||
wav.numsamples = 0;
|
||||
wav.subchunk2size = 0;
|
||||
wav.samples = NULL;
|
||||
|
||||
if ((rwav_ret = rwav_load(&wav, buffer, size)) != RWAV_ITERATE_DONE)
|
||||
return NULL;
|
||||
|
||||
samples = wav.numsamples * 2;
|
||||
|
@ -35920,8 +35920,10 @@ bool retroarch_main_init(int argc, char *argv[])
|
||||
struct rarch_state *p_rarch = &rarch_st;
|
||||
settings_t *settings = p_rarch->configuration_settings;
|
||||
global_t *global = &p_rarch->g_extern;
|
||||
#ifdef HAVE_ACCESSIBILITY
|
||||
bool accessibility_enable = false;
|
||||
unsigned accessibility_narrator_speech_speed = 0;
|
||||
#endif
|
||||
|
||||
p_rarch->osk_idx = OSK_LOWERCASE_LATIN;
|
||||
p_rarch->video_driver_active = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user