output/oss: disable 24 bit playback on FreeBSD
See code comment.
This commit is contained in:
parent
ee9c60fad4
commit
a1d1c2beaa
1
NEWS
1
NEWS
|
@ -5,6 +5,7 @@ ver 0.16.2 (2011/??/??)
|
||||||
* output:
|
* output:
|
||||||
- httpd: fix uninitialized variable
|
- httpd: fix uninitialized variable
|
||||||
- oss: AFMT_S24_PACKED is little-endian
|
- oss: AFMT_S24_PACKED is little-endian
|
||||||
|
- oss: disable 24 bit playback on FreeBSD
|
||||||
|
|
||||||
|
|
||||||
ver 0.16.1 (2011/01/09)
|
ver 0.16.1 (2011/01/09)
|
||||||
|
|
|
@ -41,6 +41,15 @@
|
||||||
# include <sys/soundcard.h>
|
# include <sys/soundcard.h>
|
||||||
#endif /* !(defined(__OpenBSD__) || defined(__NetBSD__) */
|
#endif /* !(defined(__OpenBSD__) || defined(__NetBSD__) */
|
||||||
|
|
||||||
|
/* We got bug reports from FreeBSD users who said that the two 24 bit
|
||||||
|
formats generate white noise on FreeBSD, but 32 bit works. This is
|
||||||
|
a workaround until we know what exactly is expected by the kernel
|
||||||
|
audio drivers. */
|
||||||
|
#ifndef __linux__
|
||||||
|
#undef AFMT_S24_PACKED
|
||||||
|
#undef AFMT_S24_NE
|
||||||
|
#endif
|
||||||
|
|
||||||
struct oss_data {
|
struct oss_data {
|
||||||
int fd;
|
int fd;
|
||||||
const char *device;
|
const char *device;
|
||||||
|
|
Loading…
Reference in New Issue