From 43a3211ab484610d6e79370f0cc8d764e7671664 Mon Sep 17 00:00:00 2001 From: garyscavone Date: Thu, 19 Dec 2024 09:14:33 -0500 Subject: [PATCH] Added S24_3LE format support for Alsa. --- RtAudio.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/RtAudio.cpp b/RtAudio.cpp index b5901ecf..d74c4bf7 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -8195,6 +8195,9 @@ bool RtApiAlsa :: probeDeviceInfo( RtAudio::DeviceInfo& info, std::string name ) if ( snd_pcm_hw_params_test_format( phandle, params, format ) == 0 ) info.nativeFormats |= RTAUDIO_SINT16; format = SND_PCM_FORMAT_S24; + if ( snd_pcm_hw_params_test_format( phandle, params, format ) == 0 ) + info.nativeFormats |= RTAUDIO_SINT24; + format = SND_PCM_FORMAT_S24_3LE; if ( snd_pcm_hw_params_test_format( phandle, params, format ) == 0 ) info.nativeFormats |= RTAUDIO_SINT24; format = SND_PCM_FORMAT_S32;