Skip to content

Commit

Permalink
Added S24_3LE format support for Alsa.
Browse files Browse the repository at this point in the history
  • Loading branch information
garyscavone committed Dec 19, 2024
1 parent 17d6a6d commit 43a3211
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions RtAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 43a3211

Please sign in to comment.