mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-08 08:41:21 +00:00
Extend error logging in alsa driver
This commit is contained in:
parent
729a0d04fa
commit
b3939138d4
1 changed files with 4 additions and 1 deletions
|
@ -218,11 +218,13 @@ new_fluid_alsa_audio_driver2(fluid_settings_t *settings,
|
|||
|
||||
if(snd_pcm_hw_params_set_access(dev->pcm, hwparams, fluid_alsa_formats[i].access) < 0)
|
||||
{
|
||||
FLUID_LOG(FLUID_DBG, "snd_pcm_hw_params_set_access() failed with audio format '%s'", fluid_alsa_formats[i].name);
|
||||
continue;
|
||||
}
|
||||
|
||||
if(snd_pcm_hw_params_set_format(dev->pcm, hwparams, fluid_alsa_formats[i].format) < 0)
|
||||
{
|
||||
FLUID_LOG(FLUID_DBG, "snd_pcm_hw_params_set_format() failed with audio format '%s'", fluid_alsa_formats[i].name);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -291,7 +293,7 @@ new_fluid_alsa_audio_driver2(fluid_settings_t *settings,
|
|||
|
||||
if(fluid_alsa_formats[i].name == NULL)
|
||||
{
|
||||
FLUID_LOG(FLUID_ERR, "Failed to find a workable audio format");
|
||||
FLUID_LOG(FLUID_ERR, "Failed to find an audio format supported by alsa");
|
||||
goto error_recovery;
|
||||
}
|
||||
|
||||
|
@ -324,6 +326,7 @@ new_fluid_alsa_audio_driver2(fluid_settings_t *settings,
|
|||
|
||||
if(!dev->thread)
|
||||
{
|
||||
FLUID_LOG(FLUID_ERR, "Failed to start the alsa-audio thread.");
|
||||
goto error_recovery;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue