mirror of https://github.com/encounter/SDL.git
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.
This commit is contained in:
parent
e05d92a17d
commit
9525f9729a
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Driver for native NetBSD audio(4).
|
* Driver for native NetBSD audio(4).
|
||||||
* vedge@vedge.com.ar.
|
* nia@NetBSD.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
@ -261,6 +261,14 @@ NETBSDAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscapture)
|
||||||
prinfo->encoding = AUDIO_ENCODING_ULINEAR_BE;
|
prinfo->encoding = AUDIO_ENCODING_ULINEAR_BE;
|
||||||
prinfo->precision = 16;
|
prinfo->precision = 16;
|
||||||
break;
|
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) {
|
if (prinfo->encoding != AUDIO_ENCODING_NONE) {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue