Buildfixes

This commit is contained in:
LibretroAdmin 2025-01-19 20:37:04 +01:00
parent cde82f532c
commit 13bc41facc
2 changed files with 2 additions and 2 deletions

View File

@ -268,7 +268,7 @@ static bool alsa_microphone_stop_mic(void *driver_context, void *mic_context)
static bool alsa_microphone_mic_use_float(const void *driver_context, const void *mic_context)
{
alsa_microphone_handle_t *mic = (alsa_microphone_handle_t*)mic_context;
return microphone->stream_info.has_float;
return mic->stream_info.has_float;
}
microphone_driver_t microphone_alsa = {

View File

@ -311,7 +311,7 @@ error:
if (mic)
{
if (mic->info.pcm)
snd_pcm_close(microphone->info.pcm);
snd_pcm_close(mic->info.pcm);
alsa_thread_microphone_close_mic(alsa, mic);
}