mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Fix some Coverity warnings
This commit is contained in:
parent
449a33cf17
commit
2aa095aa4b
@ -476,9 +476,10 @@ static bool audio_mixer_play_mod(
|
||||
struct module* module = NULL;
|
||||
struct replay* replay = NULL;
|
||||
|
||||
data.buffer = (char*)sound->types.mod.data;
|
||||
data.length = sound->types.mod.size;
|
||||
module = module_load(&data, message);
|
||||
data.buffer = (char*)sound->types.mod.data;
|
||||
data.length = sound->types.mod.size;
|
||||
module = module_load(&data, message);
|
||||
|
||||
if (!module)
|
||||
{
|
||||
printf("audio_mixer_play_mod module_load() failed with error: %s\n", message);
|
||||
@ -824,6 +825,7 @@ void audio_mixer_mix(float* buffer, size_t num_frames, float volume_override, bo
|
||||
#ifdef HAVE_STB_VORBIS
|
||||
audio_mixer_mix_ogg(buffer, num_frames, voice, volume);
|
||||
#endif
|
||||
break;
|
||||
case AUDIO_MIXER_TYPE_MOD:
|
||||
#ifdef HAVE_IBXM
|
||||
audio_mixer_mix_mod(buffer, num_frames, voice, volume);
|
||||
|
Loading…
x
Reference in New Issue
Block a user