aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2021-03-03 17:43:13 +0000
committerDaniel P. Berrangé <berrange@redhat.com>2023-11-07 14:58:54 +0000
commit5b4edd7230cd3010a05c6bc34c5465215275b12a (patch)
tree55ea3c3ad6232d8eb5580823e214dd3c547a85e7 /audio
parent9c636e0f9644d0778c16f460e0645e2352f42a7a (diff)
audio: don't abort on f32 audio format in wav backend
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>
Diffstat (limited to 'audio')
-rw-r--r--audio/wavaudio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/wavaudio.c b/audio/wavaudio.c
index ea20fed0cc..a8798a1c42 100644
--- a/audio/wavaudio.c
+++ b/audio/wavaudio.c
@@ -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();
}