Skip to content

Commit

Permalink
Fixed bug 5076 - SDL_netbsdaudio: Add support for 32-bit LPCM
Browse files Browse the repository at this point in the history
Nia Alarie

The kernel supports this, make SDL expose it so it can be used.
  • Loading branch information
slouken committed Apr 5, 2020
1 parent e05d92a commit 9525f97
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/audio/netbsd/SDL_netbsdaudio.c
Expand Up @@ -24,7 +24,7 @@

/*
* Driver for native NetBSD audio(4).
* vedge@vedge.com.ar.
* nia@NetBSD.org
*/

#include <errno.h>
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 9525f97

Please sign in to comment.