1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737
|
$Id: HISTORY 293 2013-10-07 17:58:33Z jon13 $
Version 1.9.4 (stable) 10/07/2013
- auerswald
- Fix several potential security issues in the NAS server reported
by Hamid Zamani <me@hamidx9.ir> to the NAS mailing list.
See http://radscan.com/pipermail/nas/2013-August/001270.html for
a description. In addition, CVE numbers have been defined for
these issues:
CVE-2013-4256
CVE-2013-4257
CVE-2013-4258
- Fixed some warnings while building some of the clients.
- narrow a possible race condition in
auvoxware.c:disableProcessFlow() reported by Paul Fox.
- steve_mcintyre
- add a format string to aulog.c (found using -Wformat-security
warnings)
- Don't preprocess man pages
- Add proper includes in server/os/connection.c to prevent some
compile warnings and a possible server coredump under the right
conditions on x86_64 Linux systems.
Version 1.9.3 (stable) 05/13/2011
- overdue 1.9.3 maint release
- Older X11 systems used to define SharedLibX and friends if the
installed X11 system was built with shared lib support. Newer
X11's use SharedLibX11 instead. Same for
{Normal|Debug|Profile}LibX. So check for these and set
appropriately in NetAudio.tmpl.
Shared lib installations should deal with libXau dependancies
correctly now.
- auerswald:
Added MacOS X aka Darwin to list of systems that need to
explicitely link libaudio.so against libXau. This enables building
of the shared library libaudio.so on MacOS X.
There is currently no NAS server for MacOS X.
Version 1.9.2 (stable) 03/07/2009
- overdue 1.9.2 release.
- patch from Aleksey Cheusov:
"fix for "libpthread: Unlocking unlocked mutex" seen on NetBSD-4"
libaudio: OpenSvr.c: The server mutex was being unlocked, even
though it was never locked in the first place.
- Hugo Vanwoerkom reported thousands of diagnostics in his syslog:
"doSetup: elementRate == 0! Forcing to 5000". Fix doSetup to only
warn about this when the debug level is above 10.
- auerswald:
document syslog usage
use syslog if running as a daemon, stderr otherwise
add syslog-usage-change to HISTORY file
- steve_mcintyre:
Minor man page fix ported from the Debian packages.
Multiple minor portability changes ported over from the Debian
packages. Cope with Hurd and GNU/KFreeBSD and other systems using
glibc
- apply patch from sourceforge user moinakg:
Libaudio is built with missing linker flags on OpenSolaris like
missing lXt, so it results in symbol not found errors at runtime.
I am including an Imakefile patch below that fixed this.
Version 1.9.1 (stable) 11/10/2007
- per a request from Frank Bttner (fedora maintainer), and in the
interest of providing the 'least surprise' for a user, nasd will
no longer initialize the mixer settings at start up, by default.
The default value of 'InitMixer' is now set to 'NO' in the
/etc/nasd/conf file.
See https://bugzilla.redhat.com/show_bug.cgi?id=247468 for the
bug report.
- based on patch from Frank Bttner, nasd will create it's local
socket, and libaudio will look for it, in /var/run/nasd/audio*.
on Linux systems. In reality, this should probably apply to all
'modern' unix systems (Solaris, *BSD, etc), but only Linux is
affected by this change now.
See https://bugzilla.redhat.com/show_bug.cgi?id=250453 for the bug
report.
The downside is that /var/run is not writable by normal users, so
if a user is trying to run the nasd server, s/he will get an error
about being unable to bind to the socket, and nasd will not start.
The workaround is to run nasd with the '-pn' (partial network)
option. This way, nasd will bind to a local TCP transport and
start successfully even if the local socket transport cannot be
initialized (though you will still see the error when nasd
starts).
Additionally, users on the local host trying to play sounds
through a server started this way may need to set their
AUDIOSERVER environment variable to 'localhost:0' for example,
rather than the default ':0' in order to play sounds.
Of course if nasd is started as root at system startup time, then
this is not a problem.
Version 1.9a (devel) 10/27/2007
- this is a possible 1.9.1 (stable) release in a couple weeks.
- modify intervalProc to stop/start the timer around AuProcessData()
calls, rather than simply disable the signal handler. This should
ensure that we never lose a timer signal, and seems to fix the
reported nasd hangs under newer linux kernels (2.6.21+).
The *BSD folks should make sure everything still works, it
should...
- rework signal handling in the voxware (OSS) server. This also
allows DIA to block/unblock interrupts at he appropriate times
now.
- apply patch from Yarda that corrects a problem with blocking and
unblocking signals in IntervalProc() (auvoxware). [jet - this
patch was removed in the patches further up]
- remove mention of the auvoxware manpage from the filelist (for src
packaging), and remove the doc/html/auvoxware.1.html file.
- Apply patches from Erik Auerswald:
- the recent bug report from a fedora 7 user showed a small bug
with the input mixer code: If the input mixer cannot control the
input channels a wrong error message is printed. The attached
patch fixes this.
- remove auvoxware.man from the voxware Imakefile
- aupanel: add option -interval to synopsis section of man page
- add automatic querying of device attributes to aupanel with a
default query interval of 10 seconds
- make the nasd.conf man page formatting more consistent
- more cleanup and removal of old/useless files.
- remove useless nas.lsm file.
- sync up for copying repository to sourceforge.
- Patch from Stefan Huehner:
- remove SleepQueue functionality which is apparently not being
used anywhere.
- remove useless 'register' declarations
- convert Swap32Write for K&R to ANSI. Also, define it's buffer
pointer as AuUint32 rather than 'long', which was wrong, but
worked accidentally.
Version 1.9 (stable) 04/07/2007
- stable 1.9 release. No code changes (other than RELEASE) since
1.8b devel release.
- In short: Fixes to several DOS attacks that could be carried out
aginst a nasd server, ANSI'fication of most of the server and
client code, and significant rework of input and output mixer
handling in the voxware (OSS) server.
Read below for more detail on the changes since the last stable
release (1.8).
Version 1.8b (devel) 03/25/2007
- 1.8b devel release. Final 1.9 in about 2 weeks, barring any
catastrophes.
- fix a variety of problems that could result in a denial of
service by crashing the nasd server. These attacks were
researched by Luigi Auriemma, who also provided a description of
the attacks and an exploit program, 'nasbugs'.
I have added his emailed report and the test attack code to the
nas repository in contrib/nasbugs if you are interested. Thanks
to Luigi for finding these problems. It sucked fixing them :)
Here is a list of the bugs tested as output by the nasbugs
program:
1 = accept_att_local buffer overflow through USL connection
2 = server termination through unexistent ID in AddResource
3 = bcopy crash caused by integer overflow in ProcAuWriteElement
4 = invalid memory pointer caused by big num_actions in ProcAuSetElements
5 = another invalid memory pointer caused by big num_actions in
ProcAuSetElements
6 = invalid memory pointer in compileInputs
7 = exploits bug 3 in read mode (requires something playing on
the server)
8 = NULL pointer caused by too much connections
Note on bug #2, X11 display servers should be vulnerable to a
DOS of this type as well (causing fatal 'client not in use'
errors in AddResource()).
Note on bug #8, the nasd server will not be able to accept
further client connections when the client table is full, until
the rejected clients disconnect their end of the socket and the
neccessary fd's are freed up. It's better than coring though.
- set the default open modes for the output audio device to
write-only, and for the input device, use read-only (already the
default).
These can still be changed in the nasd.conf file, if needed.
Previously, the default was to open the output device
read-write, causing various issues with different
hardware/driver configurations. There is no need to open this
device read-write anyway.
- apply patch from Paul Fox, correcting a typo in auvoxware.c
- apply patch from Erik Auerswald
"With the attached patch the output and input device can be
disabled by specifying an empty string as device name. Yes, when
using an empty string for both devices there will be a NAS
server that can neither play nor record anything."
Version 1.8a (devel) 11/27/2006
- Updated the Amd.h (machine definition file) with modern X11
(X11R6.8) contents so it can build with Qt and other X11
software that makes use of X11's Xmd.h header file. Problem
reported by Bernard Leak.
- ANSI'fication of DeleteTypes (dia/resource.c) and NoopDDA.
Add proper header #includes where needed.
- patch from Petr Salinge (via Steve McIntyre) adding GNU/kFreeBSD
support.
- Patches from Paul Fox:
- allow the specification of a scaling factor to apply to the
output gain
- add a proper return value in auvoxware.c:initMixer()
- mondo indentification of server/*
- Applied patches from Stefan Huehner:
- marks some read-only string and function parameters as 'const
char*' instead of 'char *'. In addition an unused buffer
'errfile' from aulog.c was removed. As the two release.h
files are generated the NetAudio.tmpl was modified to emit the
'const char *' declaration.
- part two of the _.*Const removal patch. Some more defines of
_.*Const were removed which have been missed by the last patch
and the interval usage of _.*Const has been simplified to just
use const.
- removes more unused defines and functions in server/ .
Additionally a k&r style function was convertd to ansi c in
swaprep.c
- converts more function declarations and their prototypes
without parameters from () to the (void) form
- attached patch changes all of the conditional i.e. _AuConst
definitions to only list const in the externally visible
header files. This is to preserve compatibility if someone
uses these definitions while using the libaudio library.
[JET] The use of AuConst is deprecated (and is probably not
being used by anyone anyway).
- removes the defined VENDOR_STRING and VENDOR_RELEASE from
server/include/site.h as they aren't used in the 3 files
including site.h. Additionally the inclusions of site.h was
removed from server/dia/main.c as none of its defines is used
in main.c
- removes the 2 unused functions:
- server/dia/dispatch.c: void UpdateCurrentTime()
- server/dia/dixutils.c: TimeStamp ClientTimeToServerTime
and it changes one more occurence of () to (void).
- corrects some function declarations by changing () to (void)
- removes some unsued variables in lib/audio/nameaddr.c and
and unused function in server/os/utils.c
- removed some old (and stupid) debug code for AIX: in
server/os/utils.c there is some code to redirect error logging
from stderr to and file in tmp on AIXV3. As OpenDebug isn't
called anywhere this is broken when AIXV3 is
defined. Additionally this logfile is fixed in /tmp which
permissions 00777
- removed the declaration of FreeResource from the opaque.h
header file. All files which include opaque.h don't use this
function and this declaration is copied from resource.h
- corrects several prototypes in resource.[ch] to match the
actual function definitions inside resource.c
- patch that modifies the two users of ostruct.h to directly
include os.h (which includes misc.h) and removes the
osstruct.h line in config/filelist. If an additional "svn
remove server/include/osstruct.h" is used we can get rid of
osstruct.h completely.
- removes servermd.h. removes the inclusion of servermd.h in 3
files and its reference in 'config/filelist'.
- clean up several of the client programs. Mostly adding const
to parameter/variable declarations. Additionally an unsused
variable was removed and some prototype in audemo.c were
fixed.
- remove some unused variables
- remove server/include/miscstruct.h
- various include file cleanups - removing unused
variables/structures, etc left over from X11.
- removing old 'const' determination, correcting some proper
uses of const. 'const' is expected to be supported by your
compiler.
- ANSIfication of various NAS components.
- remove unused portion of X11 server components (fonts, GC's,
etc).
- applied patches from Erik Auerswald:
- Add patch adding a proper 'reset' action to contrib/rc/nasd.
- a patch that:
Adds support for a different mixer for the input device to the
voxware server. Without this patch the mixer device specified
in the input section of the config file is not used.
To use the same mixer for input and output just specify the
same device in the input- and output-section of the config
file. The empty string "" can be used to specify no mixer
device for the input- or output-section. This is documented
in the nasd.conf man page.
The outputsection keyword is added to the nasd.conf man page.
fixed a bug in the support of two devices: If two devices are
used, and the sample rate of the input device can be changed,
the wrong sample size would be set by openDevice().
remove the unused "stereodevs" variable.
NOTE: Prior to this patch, the mixer device parameter for the
input section was completely ignored. The default value
for this ignored parameter was "/dev/mixer1".
With this patch, this parameter is honored. If your
configuration depends on the input mixer being the same
as the output mixer, you will need to edit your
/etc/nas/nasd.conf and set the mixer parameter in the
inputsection to '/dev/mixer', or to whatever mixer
device your outputsection is using.
If your system contains a /dev/mixer1 device (the
default input mixer device), nasd will now use it. This
is a good thing. :)
- preserve configuration of input device in the voxware server
when ReleaseDevice is on, and no flow is active.
- document nasd '-V' option in the man page
- opening the mixer device should be allowed to fail according
to http://radscan.com/nas/nas-ml/msg01121.html. But right now
it may only fail on startup, not when re-opening the audio
device. The attached patch corrects this issue.
- adding an option to aupanel to specify the initially
controlled device.
- keeping gain and input mode changes consistent between voxware
server and mixer if possible.
- changing recording level controls of the voxware server to use
IGain or RecLev when available and select only the specified
recording source.
- fixing MixerInit option of the voxware server.
- Adding a KeepMixer option (on by default) that causes NAS to
always keep the mixer device open so it can track external
changes to mixer settings.
- patch adding ReInitMixer option that init's the mixer to
defaults every time nasd re-opens the audio device.
- patches ANSI'fying the nas clients
- extending the gainScale functionality to apply to the input
gain as well.
Version 1.8 (stable) 06/03/2006
- time for another stable release.
- Correct problem in auvoxware, where if MixerInit is set to
false, remote volume (mixer) requests are ignored.
Reported by Paul Fox, with a fix determined by Steve
McIntyre and Erik Auerswald.
- Applied patch from Nicolas Escuder correcting a Cygwin
issue in auvoxware.c
- applied patch from Erik Auerswald adding a Mute button and
functionality to aupanel.
- applied patch from Nicolas Franois (via Steve McIntyre)
correcting some typos in the AuSetBucketAttributes and
AuSoundCreateFileFromBucket man pages.
- applied patch from 'Inma', correcting a connection hang in
Solaris 9. This reworks some of the very old and primitive
fd_set stuff in Aulibint.c .
- updated config/config.sub and config.guess to properly
detect DragonFly systems.
- Applied patch from Mark Davies and Joerg Sonnenberger
correcting some BSD issues and adding DragonFly support.
The nasd.conf man page is always installed in
$FILEMANDIR for all systems.
- applied patch from Mark Davies correcting audio/Imakefile
to properly define BSD44SOCKETS on NetBSD systems.
- Applied patch from Steve McIntyre correcting CYWIN -> CYGWIN
typo in server/dda/voxware/auvoxware.c
- applied patch from Steve McIntyre Correcting some Gcc 4.0
and AMD64 issues.
Version 1.7 (stable) 11/14/2004
- 1.7 release :)
- fixed config/Imakefile so 'configure' command would work
under cygwin. Tested clients/server under cygwin.
10/06/2004
- 1.7 release candidate
- corrected a possible race condition in auvoxware that could
cause the server to hang under certain conditions. I do not
know why I haven't seen this problem before, but I could
recreate it easily by killing auplay while playing a long
tune.
If the system restarts syscalls after a signal handler has
run, a situation could arise where the previous timer was
never disabled. This could cause a previous ioctl(DSP_SYNC)
called from setSampleRate() to be constantly interrupted and
restarted, causing an apparent hang.
Now we just turn off the timer as the first thing in
setSampleRate() so DSP_SYNC can actually finish.
We also turn off the timer when openDevice is called, so the
'wait for device to become available' code can work too.
- Patch from Tobias Diedrich that allows mixer init to
fail in the voxware server.
Quote:
With this patch "aoss nasd" works, without it would fail
(aoss is the alsa oss wrapper script, which simply preloads
libaoss.so, a wrapper library similar to libaudiooss).
Combining this with the alsa dmix feature should allow nas
to coexist with other daemons like artsd.
See http://radscan.com/nas/nas-ml/msg01121.html for more
details.
- redid the FAQ in an attempt to make it more useful. I'll
try to keep it up to date.
- updated libtool due to a problem(s) reported by Steve
McIntyre.
08/20/2004
- clear CFLAGS before building config/config.h
- emit the release string to the log and stdout when
verbose is enabled.
- if '-V' specified, emit release string and stdout and exit.
- add a limit of 5 retries on failure to open input device.
- barring major problems, this is a release candidate.
06/20/2004
- add autoconf/configure support for config/. Now, during the
'includes' phase of the nas build, configure will try to
figure out some things about your system and build a
config.h file that the rest of nas can use. Prompted by
John Wehle's patch below.
NOTE: you still build nas like always with the imake
facility. configure in this case is only concerned with
locating various header files, functions, and the like.
- added FreeBSD 5.x patches from John Wehle correcting
malloc.h/stdlib.h use and other issues.
- remove ioctl(devAudio, AUDIO_DRAIN, 0) call from
disableProcessFlow() in dda/sun/ausuni.c that seems to cause
problems (server hangs) with certain sun audio
hardware/kernel drivers.
- applied patch from James Lee correcting a coredump in
audemo.
- corrected problem with dia/auprocess.c that caused SIGFPE's
in nasd when an element with a samplerate of 0 was
processed. Thanks to Tobias Diedrich for a test case.
- removed some pre-R5 cruft from lib/audio/ConnSvr.c that
caused build problems on some solaris systems.
02/14/2004
- Fixed up some Cygwin issues... All of the clients and the
server seem to compile and work fine now. I tested both
local and remote, to and from unix and cygwin.
- Added patch from Steve McIntyre, adding a new '-config'
option to nasd. This allows you to start nasd with
alternate configuration files rather than the default of
/etc/nas/nasd.conf. Useful if you have multiple sound
devices.
- Added 64bit fixes from Per Oyvind Karlsen
12/31/2003
- corrected a coredump with the clients in 1.6a when using a
non-zero display number. GetAuthorization() was a bit
confused about the order of it's arguements...
12/24/2003
- preparing a long overdue development release
- ANSI'ification of libaudio.
There seemed to be some confusion with the order of
arguments to the AuSoundRecordToFile*() functions.
The function declarations were made to match the prototype
definition and the man page.
- Modified Scott Presnell's patch to not enable BSD44SOCKETS
on Linux or SVR4 systems. There are some structure members
used that are not present on these (and perhaps other)
systems.
If you run into compilarion problems with ConnSvr.c relating
to invalid structure members, look at the define of
BSD44SOCKETS in Imakefile and correct for your system as
needed. Oh, send me the patch as well? :)
- auvoxware
- added some more useful debugging info. If you get the old
'cannot create audio block connection info" try running
nasd with '-v -d 99' and see what the real error is.
- certain ioctl() requests are no longer fatal (like
SOUND_MIXER_WRITE_RECSRC and SOUND_MIXER_READ_RECSRC).
Recording may not work properly if these fail though.
9/14/2003
- added patch from Marty Leisner cleaning up a couple of error
messages in server/os/connection.c
3/15/2003
- added a patch to the contrib section by Laurent Vivier - this
patch adds NAS support to the esound daemon on AIX systems.
Should be reasonably portable to other platforms as well.
Rumor has it that the Ximian folks are adding this support
officially into esound.
3/15/03
- set timer in auvoxware.c to trigger when 50% of the samples
are predicted to be consumed... This hopefully will help
with underruns on some systems/OS's... I'm not sure why
this is happening on those systems (it's not happened on any
of the systems I've used NAS on), so this should probably
be considered a harmless workaround.
3/4/03
- Patch from Scott Presnell to set BSD44SOCKETS properly for
libaudio.
12/11/2002
- patch from Steve McIntyre correcting a typo in Xtutil.h
Version 1.6 10/23/2002
- Release!
## 1.5h 10/12/2002
- Added SoundFileGetProc() to get access to the toSound and
fromSound procs in _SoundFileInfo[]. Needed for xemacs.
- Added AudioLibraryVersionMajor, AudioLibraryVersionMinor,
and AudioLibraryVersionTeeny to audiolib.h. Somewhat more
informative than just the old AudioLibraryVersion which was
set at '2'.
The old AudioLibraryVersion define is still there however,
and is defined to be equal to AudioLibraryVersionMajor.
## 1.5g 10/7/2002
- changed inputsection defaults in nasd.conf.eg to 44.1Khz, 2
channel 16b sound.
outputsection also defaults to 44.1Khz now, instead of 33Khz.
- began some CC ANSI'fication of libaudio. So far only a
couple of files have been 'upgraded' just to see what the
implications are. It's going to be a bitch ;-) And there is
the likelyhood of introducing errors, so I'll get a stable
release out first before finishing this task. The result
however should be worth it. I've a feeling a few obscure
bugs will be found and fixed doing this.
- some cleanup in server/os/utils.c and server/include/os.h.
removing K&R style prototype decls, #including unistd.h, and
setting Xalloc() et. al. to use proper void * rather than
unsigned longs.
- changed hardcoded '-L/usr/X11R6/lib' for REQUIRED libs in
lib/audio/Imakefile to '-L$(USRLIBDIR)'
- it doesn't have the HPUX 11 build fixes - I think I will
really need access to a machine, or someone who does have
access to one and wants to fix the build, in order to solve
this... The bcopy problem seems to be in the HPUX X11
config/ stuff.
- We really should release this one unless there are big
problems. ;-)
8/26/2002
- time for another development update. Should probably go
final with a 1.5.1 version soon...
7/23/2002
- removed fdset.h stuff for cygwin - no longer needed.
- auvoxware - added __CYGWIN__ checks (equal to linux)
- added __CYGWIN__ to dia/auservertype.h
- changed server imake to build nasd.exe on cygwin rather than nasd.
7/20/2002
- added cygwinArchitecture to the server Imakefile so
auvoxware will be built on cygwin systems.
- Removed the SoundFileInfo[] array in sound.h so cygwin would
be happy. Apps should not have been accessing that array
directly anyways.
Added the following new functions to sound.c (that used to
be macros in sound.h):
SoundFileFormatString, SoundValidDataFormat,
SoundFileFormatToString, SoundFileFormatToAbbrev,
SoundFileFormatToSuffixes
Assuming your code did not attempt to directly access
SoundFileInfo[], no changes should be required.
libaudio.so revision bumped to 2.3
7/15/2002
- patch from Nicholas Wourms.
- fixed FIONREAD in Alibint.c for cygwin
- fixed Imake for libaudio on cygwin
7/9/2002
- rename dia/nasconfig.* to dia/nasconf.* to avoid name
collision with NasConfig.h on windows systems.
## 1.5e 7/7/2002
- added patch from Nicolas Escuder that adds support for
Windows operating systems using Cygwin. Even the NAS server
is now supported. There are still issues with the clients.
I will provide a link on the nas-links page to precompiled
windows binaries for libaudio.dll, nasd, and some clients -
provided by Nicolas.
- based on idea from Nicolas, added background (-b) mode to
nasd, to force it to run in the background. Actually, he
supplied a patch, but I just redid it to work properly with unix
systems.
If you want to see error messages from nasd while starting
up, do not run it in daemon mode or you won't see the error
messages as stdout/stderr are closed. Someday, I'll track
down all of these and have them use osLogMsg(), which would
work regardless.
- added NAS_AUDIOMSGFILE in config/NasConfig.h to specify
where audio messages are stored (ADMPATH in os/osinit.c).
- Yes, we are at 1.5e now. Sorry I didn't release 1.5b-d. Was
a little busy with the day job ;-)
## 1.5d 6/1/2002
- added .ps -> .pdf conversions in doc/pdf/
- added html versions of man pages in doc/html/
## 1.5b 3/16/2002
- added patch from Marco Molteni to add a '-local' option to
nasd. Specifying this option allows only local clients to
connect.
- fix nasd.man to describe this and other supported options.
- moved allow_any_host into the NasConfig struct. Along with
the new '-local' option.
## 1.5a 2/23/2002
- more STARTSERVER fixes - there was still one case where when
STARTSERVER was defined, nasd could be called with the wrong
display number due to a bug in _AuConnectServer.
- changed LEX/YACC DEBUG token to CDEBUG to avoid conflicts
when building nas with '-DDEBUG'
- DEFAULT_AUSERVER is now ":0" rather than
"tcp/localhost:8000". A local socket connection will startup
faster than a tcp connection.
- mutex.h
- corrected unixware 7.x build problem
(XMUTEX_INITIALIZER) in mutex.h
- added same check for sun/solaris boxes
- got rid of XUSE_MTSAFE_API - now controlled by
NAS_USEMTSAFEAPI defined in config/NasConfig.h
If you think you are having mutex problems, you can
edit config/NasConfig.h and '#undef'
NAS_USEMTSAFEAPI, then rebuild everthing. This will
turn off threadsafety in libaudio.
- added patch from Tobias Diedrich to fix deadlock in
AuNextEvent().
- added new mutex in audio/Alibint.c to protect
_AuReadEvents() since it can no longer rely on the server
lock as a result of Tobias's patch above.
- added new option, 'gain', to config file in the input/output
sections. This sets the default gains when nasd starts up
(if MixerInit is enabled). Only in voxware for now.
1/5/2002
added -lXt and -lXau to the lib dependancy for libaudio.so on
Linux systems per a request from Lorenzo Delana.
1/20/2002
- fixed bug in ConnSvr.c that could cause the wrong server
number to passed to nasd when STARTSERVER is defined.
Version 1.5 12/26/2001
## 12/1/2001
- Corrected manpage html generation issue with the nasd.conf
manpage via patch from Erik Inge Bolso
## 1.4.2d 11/25/2001
- implemented locking in libaudio via Xthread mutexes.
This is kind of a big change, but the result should be a
threadsafe libaudio. I used Xthreads, because then
theoretically I shouldn't have to care about the system's
actual thread implementation. Right?? I've tested so far on
Linux (uses pthread_*) and Unixware 2.03 (uses thr_*). So
far so good.
- bumped up the libaudio rev to 2.2
## 1.4.2c 11/4/2001
- turned off streams support on SVR4 systems for libaudio.
UNIX and TCPCONN work just fine. The nasd server hasn't
used streams support since the 1.3 timeframe anyway. This
will work around local connection issues on UnixWare and
probably Intel Solaris as well.
- added patches from Steve McIntyre to work around an XFree86
issue, and prevent the HPUX server from being built on HPPA
systems running Linux.
- add change to AuServerName() in libaudio to default to
'tcp/localhost:8000' if neither AUDIOSERVER or DISPLAY are
set as per a suggestion by Erik Inge Bolso.
## 1.4.2b 10/6/2001
- Added patches from Peter Berg Larsen to the Sun server that
adds support for $AUDIODEV on Sun Ray platforms.
- Added patches from Peter Berg Larsen that corrects some
issues dealing with dead clients, and improper server resets
when persistent flows are still active. Also, some
uninitialized variables are now properly initialized.
## 1.4.2a 4/21/2001
- patch from Steve McIntyre to resolve man page issues, and
add a libm dependancy to libaudio for linux platforms.
- patches from Philippe Jouguet
new options in nasd.conf for the voxware server:
- add 'mixer' device option to secify the mixer.
- add 'forcerate' option to force the sample rate
to the current rate at all times
- add 'autoOpen' option to specify whether the audio
devices are opened at init time.
- add 'readwrite' option to specify whether devices
are opened read/write (default) or
readonly/writeonly for the input and output devices,
respectivly.
- added patch from Nick Ing-Simmons to pass the correct port
offset when starting nasd within libaudio (if START_SERVER
is defined at build time).
- always output verbose/debugging info to stderr if debugging
is enabled (even if you normally use syslog). stderr is not
closed when debugging is turned on.
Version 1.4.2 4/8/2001:
## 1.4.1b 3/9/2001
- added patch from Paul Fox allowing auctl to set gains based
in an increment
- added a patch to lib/audio/wave.c from Philippe Jouguet that
corrects an infinite loop that can occur when auplay is fed
a corrupted wave file.
- added patches to auplay from Paul Fox. auplay will now stop
the flow when a signal is caught. Also a new option '-l'
allows auplay to play filenames specified on stdin.
- set libaudio's SO revision to 2.1 from 1.4 to avoid
confusion with older apps built when the older libaudio
was at 2.0 (debian).
## 1.4.1a 12/10/2000
- autool - fixed -volume option
- added cast from a patch by Sun Ireland for their OpenOffice
(StarOffice) project.
- fixed libaudio to start up 'nasd' instead of 'au' when
START_SERVER is defined.
- applied Erik Inge Bolso's patch for properly opening 2
channels instead of 3 for stereo output devices.
- added HPUX 10.20.x patches from Klaus Dittrich
- fixed problem in lib/audio/Alibint.c regarding ambiguous
casts with void pointers in the buffer padding code, and to
make it more portable with other operating systems/compilers
(HPUX 10.20, UW7).
- lib/audio/soundlib.c - fixed cases where a client (like
auplay) would hang if the element Import size matched the
complete datasize of a flow. An EOF would never be sent.
Thanks to Shigeharu Takeno for providing a reproducible test
case.
- added Unixware 7.1 patches from Robert Roselius.
- added patch to sun/ausuni.c from John Wehle correcting a
problem on some solaris machines that don't allow sbpro
devices to be open for both reading and writing.
- add patches from Steve McIntyre for creating sticky socket
directories, and to close stdin, stdout, and stderr.
Version 1.4.1 9/4/2000:
- this release is really only neccessary if you are using the
NAS server on a Sun, and have frequent dropouts.
- fix to the sun server from Charles Levert correcting a Sun
problem with 'late SIGPOLLS'.
- minor documentation fixes - new mailing list archive
location, etc.
Version 1.4 2/27/2000:
- Release of 1.4
- Removes USE_BSD* dependancies on Linux builds.
## 1.3e 02/12/2000:
- This is a pre-release 1.4 candidate.
- corrected a problem in the voxware server where when
ReleaseDevice was enabled, the device would be held
open when nasd was first started until the first
connection was made.
- added config/NetAudio.def to set various configurables like
NasConfigSearchPath.
- changed documentation regarding the new location of the web
site (http://radscan.com/nas.html)
## 1.3d 01/05/2000:
- corrected some build problems on Sparc Solaris 2.6 with native
compiler/X11 env
- corrected build problems on native Unixware compiler and X11R5
Note, to get this to work, you need 3 corrected
/usr/X/lib/config/ files from me...
- integrated config handling in all servers, based on a
lex/yacc parser from Stephen Hocking that was in the
voxware server.
- config file is /etc/nas/nasd.conf
an example config file (/etc/nas/nasd.conf.eg)
is installed.
- parser errors are a bit more informative ;-)
- no more parser in voxware server... moved into dia/
for general purpose use.
- each server now has a config.c and config.h file that
provides the ddaSetConfig() functionality required
of each server by dia/. In the SGI case,
it's just a stub. ddaSetConfig() ignores options
it doesn't understand (required behavior).
- server cmdline options '-v' (verbose) and '-d <num>'
(debug messages) added. These override
nasd.conf settings.
- hooks added to all servers in config.c - ddaProcessArg()
and ddaUseMsg() for integrated arg handling.
- voxware server:
- release device functionality now controlled by
nasd.conf
- mixer init policy now controlled by nasd.conf
- sun server:
- added integrated sun (ausuni) module (now built by
default) into the distribution.
- release device functionality now controlled by
nasd.conf
- hpux server:
- added device release (ReleaseDevice) capability to hpux
server. All servers except for sgi now
support this functionality.
- fixed sample rate change problem in hpux server
- separated hardware init code for ReleaseDevice
functionality
- added new option in nasd.conf to select either the
EXT (external - headphones/speakers) or INT
(internal speaker) output device by default
- renamed generated server binary from au* to nasd for all
servers
- man pages updated (auserver.man and
AUVoxConfig.man respectively).
## 1.3c 10/24/99:
- Added patches from Mark Davies for NetBSD.
- changed BIG_ENDIAN ->NAS_BIG_ENDIAN and LITTLE_ENDIAN to
NAS_LITTLE_ENDIAN per Mark's suggestion globally
- Added global NasConfig struct for configurables global to all
servers.
- More prep work for unified arg/config handling
- Some bug fixed related to the 'mondo' patch.
- Replacement of PRMSG() macros with a varargs logging function:
osLogMsg(...). If your working on a server and want to
use these, #include "aulog.h" (in 1.3c+) and go for it.
- I've added a NasConfig.h file to config/ that defines (or will)
a few things (like whether you want to use syslog,
etc). Initially you will need to tweak this manually
for your site...
- Changes made to the way various include files are generated
during a build... Basically any module that contains
header files needed by other modules have the
appropriate header files exported into TOPLEV/include
during the includes phase of the build using the imake
BuildIncludes() macros.
## 1.3b 9/4/1999:
- Addition of Steve McIntyre's Mondo patch.
## 1.3a 8/1/1999:
- First test version incorporating many patches from around
the planet, based on original 1.2p5 sources.
#
#
############################################################################
# the following is included for historical reasons, and concerns
# changes to 1.2p5 and earlier versions.
#
# $NCDId: @(#)HISTORY,v 1.27 1996/09/05 18:46:47 greg Exp $
#
** 1.2 - PATCH 05 **
Server
o voxware bug fixes, configuration file, and man pages.
(Thanks to Stephen Hocking)
o fixed some HP server compilation problems.
o fix a potential problem when reading from a client. under
some circumstances the read pointer could be left on
a non-sample size boundry resulting in white noise.
o add a bit to the component use field to indicate that using
that component will override the use of other components. This
bit is used on input devices when the audio hardware does not support recording and playing simultaneously.
o fix a problem with limiting samples on waveform devices. if you
used anything other than AuUnlimitedSamples, bad things would
happen.
Library
o fixed a problem reading some wave files.
Clients
o auphone - check for the exclusive use bit.
o auscope - display the exclusive use bit.
Misc
o support library and client compilation under Windows NT with
X11R6.1.
** 1.2 - PATCH 04 **
Server
o fixed a bug in the Sun dbri driver that caused the speaker
to get turned off. (Thanks to Charles Levert)
o fixed an ancient server bug that caused buffers to get
corrupted when a flow is stopped and restarted.
Clients
o some more minor bug fixes to auscope.
** 1.2 - PATCH 03 **
Server
o HPUX server now functional. (Thanks to Jay Brister)
o Fix non-rentrant malloc problem for SGI server under
IRIX (5.3). (Thanks to Scott Byer)
o removed obsolete SVR4 voxware code.
o catch bad protocol requests.
Library
o prevent AuSoundPlayFromFile() and AuSoundPlayFromData() from
changing the line mode. A bug introduced in patch 2.
o fixes for shared audio library under X11R6. (Thanks to
Bill Sebok)
o clean up some defines in the STARTSERVER code. (Thanks to
Bill Sebok)
o added AuSoundRecordToDataLength() which can be used to find the
length of data recorded when recording to memory.
(Thanks to Jonathan Thompson)
Clients
o minor bug fix to auscope.
o audemo - cut off filename extensions from the right instead
of the left. (Thanks to Raymond Toy)
Misc
o Updated SunOS 4.1.3 OpenWindows notes in BUILDNOTES.
(Thanks to Curt Schroeder)
o Added notes and patch for running on a SS5 to BUILDNOTES.
(Thanks to Mikael Pettersson and Curt Schroeder)
o Added note for building clients under AIX to BUILDNOTES.
(Thanks to Harald Milz)
o Added note for building on DEC Alpha (OSF1 V3.2).
(Thanks to Andrew Daviel)
** 1.2 - PATCH 02 **
Server
o caused the server to return to the lowest sampling rate when a
flow terminates while playing multiple flows simultaneously.
o improved voxware dda driver.
(Thanks to Stephen Hocking and Shawn M.)
o experimental HP dda driver. (Thanks to William J. Hunter)
o add a -timeout option to the server to allow the server to
terminate after a period of time with no clients.
(Thanks to William L. Sebok)
To enable this, you must build the NAS tree using the following:
make WORLDOPTS='-k CDEBUGFLAGS="$(CDEBUGFLAGS) -DSTARTSERVER"' World
Library
o fixed a bug in the wave file reader.
o fixed a bug in the aiff file reader.
o new soundlib/sound functions AuSoundPlay(), AuSoundRecord(),
and SoundTellFile() with man pages. (Thanks to Yoav Eilat)
o attempt to launch an NAS server on the local host if client
cannot initially connect to a local server.
(Thanks to William L. Sebok)
To enable this, you must build the NAS tree using the following:
make WORLDOPTS='-k CDEBUGFLAGS="$(CDEBUGFLAGS) -DSTARTSERVER"' World
Clients
o add *input resources to all X clients to correct a problem
with some window managers not giving focus.
o fixed bug in auscope when displaying actions or parameters.
o fixed typo in auscope that caused it not to work with Perl 5.
o added playRaw example client.
** 1.2 - PATCH 01 **
Server
o added output mode control (Speaker/Headphone/Line-Out) to the server
and the Sun dda drivers. (thanks to Ian Donaldson)
o fix for multiple bundle elements in a flow. (thanks to Steven King)
o improved voxware dda driver.
(thanks to Christian Schlichtherle and Stephen Hocking)
o the server now does a range check on the output data and
clips correctly. Due to the possible performance impact,
this can be disabled by commenting out the #define
OUTPUT_RANGE_CHECK in server/dia/auprocess.c. ** ATTENTION
DDA DEVELOPERS ** this fix required a change to all of the
dda drivers. The output minibufs must be twice as large as
they were previously. (thanks to Steven King)
o voxware dda driver - Fix problem (apparently from
SoundPlayFromBucket) where tail of data was not flushed
through card until start of next operation. (Thanks to Paul
F. Werkowski)
o only call dda set sample rate callback if the rate has changed.
Library
o SVR3.2 with STREAMSCONN wouldn't work with XDMCP due to a
bug in nameserver.c. (required XDMCP to be disabled; this
won't affect users of stock NAS 1.2 but would affect those
audio servers that implement XDMCP authorization checking)
(thanks to Ian Donaldson)
o fatal errors now lookup AuErrorDB for more detail.
(like Xlib does with XErrorDB) (thanks to Ian Donaldson)
o Implementation of user callable error catching functions:
AuSetErrorHandler()
AuSetIOErrorHandler()
(thanks to Ian Donaldson)
o added default error handler variables so you can catch errors
during the initial server open. (Thanks to Richard Caley)
o added some setjmp gunkus to Xtutil.c for use by error handlers.
(Thanks to Richard Caley)
o C++ compatibility. (Thanks to Yoav Eilat)
o New SoundSeekFile() and SoundFlushFile() functions.
(Thanks to Yoav Eilat)
o SoundNumSamples() value is now updated in SoundWriteFile().
(Thanks to Yoav Eilat)
Clients
o added re-written auscope.
o modified aupanel to support output mode controls.
General
o made all the Imakefiles use an explicit path for NetAudio.tmpl
to fix possible includes of the wrong NetAudio.tmpl.
o some notes on building under SunOS 4.1.3 OpenWindows from
Ian Donaldson.
o new API man pages from Steven King. (Thanks!)
o made man page installation use standard InstallManPage macro.
o use AuInstallScript macro to install scripts.
o fixed some build and install problems under FreeBSD 1.1.5.1.
(Thanks to Paul F. Werkowski)
** Release 1.2 **
General
o A few cosmetic changes.
** PATCH 02 **
Server
o fixed a bug with monitor elements not returning the correct
data. This caused the meters in audemo to be broken.
o patches from Steven King
- In server/os/connections.c, EstablishNewConnections
probably ought to check that newconn is less than
lastfdesc before it is used in the BITSET macro (this in
the mit X11r5 source, havent looked at r6 yet), tho
you'd need lots and lots of connections to tickle
this. Also in connections.c, CheckConnections should
probably check for EINTR if select returns an error, I
dont know if any implementation of select would actually
EINTR for if it got a SIGPOLL or SIGALRM if the timeout
is zero, but better safe than sorry.
- FallbackDefineSelf exists and is only referenced in
os/access.c. Its part of the localconn patch which
obviously isnt handling non 386 svr4's correctly.
Library
o fixed a bug in AuSoundRecordToData(). The flow wasn't getting
stopped when the recording was finished.
o fixed compile problem in ConnSvr.c under Dell 2.2 Xfree86-2.1.1.
o fixed compile problems under some X11R4s that don't define _Xconst.
Clients
o fixed problem with audial -recognize messing with line mode and
gain attributes without checking to see if the device was capable.
o fixed range/clipping problem in effectsAmplitude in auedit.
General
o changed occurances of the name "NetAudio" to "Network Audio System"
or "NAS" due to a name conflict.
o patches from Ian Donaldson
- Solaris 2 server failed to link because of undefined
symbol FallbackDefineSelf().
- Shared library compilation broke completely due to
changes in NetAudio.tmpl and because the include of
<Library.tmpl> was moved too high up in
lib/audio/Imakefile, and missed out on the
DoSharedLib/DoNormalLib flags etc.
** PATCH 01 **
Server
o fixed a couple of problems with speed changes in the
SVR4 VOXware driver.
** Release 1.2b BETA **
Library
o fixed possible bogus free in sound.c.
Clients
o fixed auwave dropping core (due to bugs in the slider widget).
General
o lots of stuff from Steven King. See CHANGES.sk below for details.
o The file server/PATCHES.sk contains patches from Steven King to
improve the handling of audio clipping in the server. I've
not applied them to the standard distribution yet because
I'm concerned about their possible performance impact.
o added some documentation about actions.
** PATCH 01 **
Server
o fixed a bug with looping flows.
Library
o fixed problem with X11R4 build.
** Release 1.2a ALPHA **
Server
o fixed a bug in ReadElement that would occasionally cause
protocol errors during recording.
o wake up the server when there are events to send out.
o fixed a bug in readBucket() that caused noise at the end of
a bucket.
o get rid of minibuf padding to eliminate clicks.
o optimized sample rate conversion.
o added FreeBSD/Linux VOXware driver (thanks to Amancio Hasty).
o added SVR4 VOXware driver (thanks to Stephen Hocking).
o added line mode control to Sun dbri driver.
Library
o add AuXtAppRemoveAudioHandler().
o fixed memory leaks and other problems with the bucket attribute
cache.
o fix some nits with waveform durations.
Clients
o new auphone sample app.
o added some simple examples.
General
o much cleaning and various OS support fixes from
Ian M. Donaldson. See CHANGES.labtam below for details.
** Release ?.? ALPHA (Feburary 11, 1994) **
Server
o fixed a bug where the last little bit of audio data would be
lost.
o fixed a bug in readClient where the buffer was being incorrectly
padded, possibly resulting in static at the end of the audio data.
o fixed two track monitor elements.
o Sun driver
- fixed a bug that could cause the output to get jumbled.
- wait for audio to drain after flows finish.
- Sparc 10 dbri driver.
Library
o added API for set and get close down mode.
o added Amiga IFF/8SVX sound file support.
o close the sound file before the callback is called for
AuSoundRecordToFile().
o make ListBuckets add to the bucket cache.
o added file format suffixes to the SoundFileInfo structure.
o added AuSetString() macro.
o fixed "strdup" bug in SoundCreate.
o re-arranged some utility routines into separate modules.
(NOTE: possible incompatibility - AuMonitorRate and AuMonitorFormat
are no longer externed in audioutil.h)
o add AuWaveFormToString() and AuStringToWaveForm().
o add AuSoundRecordToData().
o add stereo support for voc files (thanks to Steven King).
Clients
o auedit
- deal with sound files with an unknown number of samples
(like those from stdin).
- add record capability.
o utilities
- various new utilities.
o new auwave sample app.
o new slider widget for volume/gain controls.
General
o re-worked the includes of NetAudio.tmpl so it will (hopefully)
work on most platforms.
o builds under SVR3.2 (thanks to Steven King).
** Release 1.1 **
Server
o Protected malloc/free from audio signals.
o Fixed setting parameters of waveforms and buckets.
o New dia/dda interface.
o Fixed a bug where the flow was re-compiled after
an event was requested even if that event didn't change
the state of the flow.
o Fixed possible memory trashing in readClient.
o Sun driver
- Don't initialize output gain or internal/external speaker
mode.
- Get rid of some 'clicks'.
- Deal with the situation when there are no physical outputs
in a flow. This fixes the core dumps when you record before
having played anything.
- Fixed erroneous calling of AuProcessData() after changing
gain values.
- Fixed various bugs in recording (how did it ever work?!)
o New SGI driver (thanks to Reiner Ernst)
Library
o Fixed a bug in AuConvertShortToData().
o Fixed function prototypes in Xtutil.h.
o Fixed a problem in Xtutil.c where events would not get processed
if they were enqueued while awaiting a reply.
Clients
o auedit
Fixed a bug with temporary and backup file names.
o auconvert
Fixed a bug with converting raw data.
General
o Solaris 2.2 support
********************************************************************************
CHANGES.labtam
********************************************************************************
Many thanks to Ian M. Donaldson at Labtam for the following:
- Now compiles cleanly on all these without any compiler warnings
whatsoever (well the odd one or two under X11R4).
- Solaris 2.3 on SS1000 under Sun provided Open Windows 3.2
Server untested.
(We only have a SS1000 running 2.3 which has no audio device)
Porting required because Sun changed the audio interface
slightly in Solaris 2 versus SunOS 4.
Clients tested reasonably.
- AIX 3.2 on a RS6000/220 under IBM provided X11R4
No server port done. Don't have access to any IBM audio hardware.
Clients tested reasonably.
- SunOS 4.1.2 on a Sun IPX under MIT provided X11R5.
(no porting required specific to this platform)
Both clients and server tested reasonably.
- SVR4.0/486 on one of our own computers under MIT provided X11R5.
(as a guess comparable to Dell SVR4.0 or ESIX SVR4.0)
We used native STREAMSCONN TLI TCP/IP transport.
No server port done. This computer never had audio hardware.
Clients tested reasonably.
- SVR3.2/486 on one of our own computers under MIT provided X11R4.
This O/S uses Lachman provided TCP/IP, and we used
STREAMSCONN TLI TCP/IP transport.
No server port done. This computer never had audio hardware.
Clients tested reasonably.
Unfortuantely every SVR3.2 system has some different
quirk since TCP was non-standard then. No guarantees
it will compile better on other types.
- Bugfixes
- server had byte swapping error that crashed playbucket(1)
when client run from opposite endian host
- autool crashed on little endian host when volume slider was
used when stopped (hung on big endian host)
- various signal mis-use. Background processes from non-job
control shells don't die when ^C hit anymore.
- "SVR4" is not a reliable symbol for use in Imakefiles; use SystemV4
instead. (broke audial).
- in Netaudio.tmpl, don't redefine MKDIRHIER or BINDIR by
default as this breaks the bootstrap in subtle ways on
certain systems. Audio clients now get installed in the
same directory that X clients do rather than /usr/local/bin.
On Solaris 2.3 with OpenWindows, this means /usr/openwin/bin,
otherwise it usually means /usr/bin/X11.
Similarly for header files, app-defaults and libraries.
- build will not fail on systems that don't have servers ported
to them. This allows the clients and libraries to be built
on all platforms and servers on a subset.
- libaudio is built as a shared library (currently rev 2.0) on systems
where libX11 is built shared. In the list above that means
Solaris 2.3, SunOS 4.1, SVR4.0.
I used rev 1.0 for the September 93 netaudio release but changes
between then and netaudio 1.1 looked somewhat incompatable so I bumped
the revision number then.
- X11R4 compatability re-added in so compiliation in those
environments is now possible.
- STREAMSCONN support for SVR3.2 and SVR4.0 for libaudio.
This is a direct port from MIT X11R5 with the odd fix-tracker applied.
NB: Not done for auscope(1). sockets used in that case.
(this is ok but if people want binary compatability from SVR3.2
to SVR4 sockets won't work because SVR3.2 has no standard socket ABI)
- Better System-V and SVR4 support
- Use System-V reliable signals. (ie: sigset(2)).
signal(2) is unreliable on System-V systems.
Didn't bother with SVR4/POSIX signals; SVR3 signals work
fine on SVR4 and are easier to understand and code.
- don't use libucb at all on SVR4. This library is bad news
on most SVR4 systems and should be avoided like the plague!
- Better ANSI support (SVR4 + Solaris)
- use ANSI memcpy/memset exclusively on ANSI systems instead
of bcopy/bzero
- eliminated all SVR4.0/486 cc's reported warnings of callback
function type declaration mismatches. (this is the bulk
of the changes). Solaris 2 cc doesn't report half these things
unfortunately.
- auscope(1) now has a '-n' flag so it can be run in background reliably.
- 'make install' now fully installs correctly. Even app-defaults!
- 'make clean' now properly cleans
********************************************************************************
CHANGES.sk
********************************************************************************
Thanks to Steven King for the following:
- building on ISC
I had a few problems building 1.2a on my system running ISC SVR3.2r4.0
with the imake enviroment provided by XFree86 (It looks to be more
work than its worth to get netaudio to build with the vendor supplied
X11R4).
In server/dia/au.h, ISC doesnt have memmove, however bcopy and friends
are in the normal library search path.
In lib/audio/Alibnet.h, the omission of the #define for _AuWriteV
resulted in link errors for all clients.
In lib/audio/Imakefile, the SYSV_DEFINES macro causes major grief if
one has installed XFree, I would expect this to be true for any SVR32
that has XFree. Also, I found it usefull to include NetAudio.tmpl
after Library.tmp so that I could redefine things like CDEBUGFLAGS and
such in NetAudio.tmpl
In clients/audio/audemo/audemo.c, ISC needed sys/time.h included, I
suspect most SYSV's will as well.
In clients/audio/audial/audial.c, the compile breaks on the inclusion
of sys/file.h, I think this is a ISC 4.0 specific problem.
- localconn patches
These patches are derived from the XFree86 2.0 release. I pretty much
just merged the XFree patches into netaudio. My principle interest
was in the streams localconn code for ISC; besides greatly improving
the performance for local clients, they allow the server to run with
the system at run level 2, or on systems where full networking isnt
availible (an extra $$$ option on ISC and lots of other PC sysVs).
In addition to the ISC code, theres also support for other systems, SVR4,
SCO, linux and net/free bsd, which may or may not be usefull depending
on the system (ie, is anyone doing an independent SCO port?). There
is also alot of code for a minix and amoeba port. I can pretty much
guarantee that this will not work, but I left it in as it doesnt affect
the other systems and might give a leg up to anyone attempting a minix
or amoeba port.
- NetAudio.tmpl
Make clients get rebuilt after libaudio.a changes.
|