From 9525f9729a9e345b07d81cda838d58b948662764 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 5 Apr 2020 10:44:51 -0700 Subject: [PATCH] Fixed bug 5076 - SDL_netbsdaudio: Add support for 32-bit LPCM Nia Alarie The kernel supports this, make SDL expose it so it can be used. --- src/audio/netbsd/SDL_netbsdaudio.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/audio/netbsd/SDL_netbsdaudio.c b/src/audio/netbsd/SDL_netbsdaudio.c index 3fd78de8d..c23a877f9 100644 --- a/src/audio/netbsd/SDL_netbsdaudio.c +++ b/src/audio/netbsd/SDL_netbsdaudio.c @@ -24,7 +24,7 @@ /* * Driver for native NetBSD audio(4). - * vedge@vedge.com.ar. + * nia@NetBSD.org */ #include @@ -261,6 +261,14 @@ NETBSDAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscapture) prinfo->encoding = AUDIO_ENCODING_ULINEAR_BE; prinfo->precision = 16; break; + case AUDIO_S32LSB: + prinfo->encoding = AUDIO_ENCODING_SLINEAR_LE; + prinfo->precision = 32; + break; + case AUDIO_S32MSB: + prinfo->encoding = AUDIO_ENCODING_SLINEAR_BE; + prinfo->precision = 32; + break; } if (prinfo->encoding != AUDIO_ENCODING_NONE) { break;