Skip to content

Commit

Permalink
audio: don't abort on f32 audio format in wav backend
Browse files Browse the repository at this point in the history
Print a debug message as is done for other unsupported audio formats
to give the user the chance to understand their mistake.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
  • Loading branch information
berrange committed Nov 7, 2023
1 parent 9c636e0 commit 5b4edd7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions audio/wavaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ static int wav_init_out(HWVoiceOut *hw, struct audsettings *as,
dolog ("WAVE files can not handle 32bit formats\n");
return -1;

case AUDIO_FORMAT_F32:
dolog("WAVE files can not handle float formats\n");
return -1;

default:
abort();
}
Expand Down

0 comments on commit 5b4edd7

Please sign in to comment.