[Midnightbsd-cvs] src [9899] U trunk/sys/tools/sound: sync sound scripts with freebsd 10-stable
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu May 24 18:36:19 EDT 2018
Revision: 9899
http://svnweb.midnightbsd.org/src/?rev=9899
Author: laffer1
Date: 2018-05-24 18:36:18 -0400 (Thu, 24 May 2018)
Log Message:
-----------
sync sound scripts with freebsd 10-stable
Modified Paths:
--------------
trunk/sys/tools/sound/snd_fxdiv_gen.awk
Property Changed:
----------------
trunk/sys/tools/sound/feeder_eq_mkfilter.awk
trunk/sys/tools/sound/feeder_rate_mkfilter.awk
trunk/sys/tools/sound/snd_fxdiv_gen.awk
Index: trunk/sys/tools/sound/feeder_eq_mkfilter.awk
===================================================================
--- trunk/sys/tools/sound/feeder_eq_mkfilter.awk 2018-05-24 22:33:14 UTC (rev 9898)
+++ trunk/sys/tools/sound/feeder_eq_mkfilter.awk 2018-05-24 22:36:18 UTC (rev 9899)
Property changes on: trunk/sys/tools/sound/feeder_eq_mkfilter.awk
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Index: trunk/sys/tools/sound/feeder_rate_mkfilter.awk
===================================================================
--- trunk/sys/tools/sound/feeder_rate_mkfilter.awk 2018-05-24 22:33:14 UTC (rev 9898)
+++ trunk/sys/tools/sound/feeder_rate_mkfilter.awk 2018-05-24 22:36:18 UTC (rev 9899)
Property changes on: trunk/sys/tools/sound/feeder_rate_mkfilter.awk
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/sys/tools/sound/snd_fxdiv_gen.awk
===================================================================
--- trunk/sys/tools/sound/snd_fxdiv_gen.awk 2018-05-24 22:33:14 UTC (rev 9898)
+++ trunk/sys/tools/sound/snd_fxdiv_gen.awk 2018-05-24 22:36:18 UTC (rev 9899)
@@ -24,8 +24,8 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
+# $FreeBSD: stable/10/sys/tools/sound/snd_fxdiv_gen.awk 319066 2017-05-28 10:44:43Z hselasky $
# $MidnightBSD$
-#
function floor(x, r)
{
@@ -74,7 +74,7 @@
FXSHIFT = 16;
FXONE = shl(1, FXSHIFT);
- SND_CHN_MAX = 18;
+ SND_CHN_MAX = 127;
PCM_8_BPS = 1;
PCM_16_BPS = 2;
@@ -103,13 +103,16 @@
printf("/*\n");
printf(" * Fast unsigned 32bit integer division and rounding, accurate for\n");
printf(" * x = 1 - %d. This table should be enough to handle possible\n", FXONE);
- printf(" * division for 1 - 72 (more can be generated though..).\n");
+ printf(" * division for 1 - 508 (more can be generated though..).\n");
printf(" *\n");
- printf(" * 72 = SND_CHN_MAX * PCM_32_BPS, which is why....\n");
+ printf(" * 508 = SND_CHN_MAX * PCM_32_BPS, which is why....\n");
printf(" */\n\n");
- printf("static const uint32_t snd_fxdiv_table[][2] = {\n");
+ printf("extern const uint32_t snd_fxdiv_table[%d][2];\n\n", SND_MAX_ALIGN + 1);
+ printf("#ifdef SND_DECLARE_FXDIV\n");
+ printf("const uint32_t snd_fxdiv_table[%d][2] = {\n", SND_MAX_ALIGN + 1);
+
for (i = 1; i <= SND_MAX_ALIGN; i++) {
if (aligns[i] != 1)
continue;
@@ -120,7 +123,7 @@
i, r["mul"], r["shift"]);
}
- printf("};\n\n");
+ printf("};\n#endif\n\n");
printf("#define SND_FXDIV_MAX\t\t0x%08x\n", FXONE);
printf("#define SND_FXDIV(x, y)\t\t(((uint32_t)(x) *\t\t\t\\\n");
Property changes on: trunk/sys/tools/sound/snd_fxdiv_gen.awk
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list