cvs commit: src/sys/sys soundcard.h
netchild at FreeBSD.org
Sun Jul 31 16:08:06 GMT 2005
netchild 2005-07-31 16:08:04 UTC
FreeBSD src repository
OSS defines AFMT_x32_xE as:
1) 32bit data, packed within 32bit (4bytes) boundary.
2) 24bit data, packed within 32bit (4bytes) boundary where the data
is stored in the 24 most significant bits and least significant 8
bits are not used and should be set to 0.
While this might hold true in few cases, lots of applications (notably
mplayer, sweep) really deal / produce 24bit as what they should meant
to be: 24bit data / 3bytes per sample.
To handle this "true" 24bit pcm format add AFMT_x24_xE, so the in-kernel
conversion space did not confuse itself with 32bit variant.
You need to rebuild mplayer after installing this change (this header and
the upcomming kernel changes), if you want to use this new feature.
Submitted by: Ariff Abdullah <skywizard at MyBSD.org.my>
Tested by: multimedia@
Revision Changes Path
1.45 +4 -0 src/sys/sys/soundcard.h
More information about the cvs-all