ports/125542: audio/oss does not return propper SNDCTL_DSP_GETBLKSIZE size
Jung-uk Kim
jkim at FreeBSD.org
Tue Jul 15 00:20:26 UTC 2008
This is one of the incompatibilities between FreeBSD vs. OSS API.
soundcard.h from FreeBSD:
#define SNDCTL_DSP_GETBLKSIZE _IOR('P', 4, int)
soundcard.h from OSS:
#define SNDCTL_DSP_GETBLKSIZE __SIOWR('P', 4, int)
Note FreeBSD version is read-only and OSS version is not. It seems
OSS version is wrong but it is an obsolete API:
http://manuals.opensound.com/developer/SNDCTL_DSP_GETBLKSIZE.html
You have two choices here. Compile your appliacations with
include/soundcard.h from OSS distribution or use
SNDCTL_DSP_GET[IO]SPACE as recommeneded in the manual. The latter is
obviously better choice and there is no incompatibility between the
two versions.
Jung-uk Kim
More information about the freebsd-ports-bugs
mailing list