Date: Mon, 24 Sep 2018 13:04:39 +0300 From: fesse <fesse@mail.ru> To: freebsd-drivers@freebsd.org Subject: Meaning of SND_FORMAT macro parameters (used in sound subsystem) Message-ID: <20180924130439.fcf1244b47d668bb632cefb9@mail.ru>
next in thread | raw e-mail | index | archive | help
Good day to everyone, SND_FORMAT macro is defined in sound.h: #define SND_FORMAT(f, c, e) (AFMTT_ENCODING(f) | (((c) << AFMT_CHANNEL_SHIFT) & AFMT_CHANNEL_MASK) | (((e) << AFMT_EXTCHANNEL_SHIFT) & AFMT_EXTCHANNEL_MASK)). Many sound drivers define data format like this: SND_FORMAT(AFMT_S16_LE, 2, 0); Sound guys, tell me please what means "2" and "0", i.e. "c" and "e" macro arguments. I really in doubt...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180924130439.fcf1244b47d668bb632cefb9>