*BSD News Article 32541


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!constellation!convex!convex!news.duke.edu!eff!news.umbc.edu!haven.umd.edu!purdue!lerc.nasa.gov!kira.cc.uakron.edu!ns.mcs.kent.edu!borsburn
From: borsburn@mcs.kent.edu (Bret Orsburn)
Newsgroups: comp.os.386bsd.apps
Subject: Netaudio package/port bugs
Date: 9 Jul 1994 01:35:56 GMT
Organization: Kent State University
Lines: 59
Message-ID: <2vkuts$82u@ns.mcs.kent.edu>
NNTP-Posting-Host: condor.mcs.kent.edu

I've found some problems with the netaudio binary package and source port as
they appear on the new BSDisc (issue 2).

These bits are originally from freebsd.cdrom.com, but I do not know whether
the bits on freebsd.cdrom.com have changed since the BSDisc was mastered.

The following comments apply to FreeBSD 1.1 and local connections (I am not
connected to a network, so I cannot comment on TCP connections).

In short: the binary package does not work and the source port does not work
as configured. (Clients are unable to connect to the audio server.)

The problem is that FreeBSD 1.1 uses 4.4BSD-style sockets, and address lengths
are being incorrectly calculated.

The problem can be fixed by recompiling with something like the following:

--------------------------------------------------------------------------
*** netaudio/config/.orig/NetAudio.tmpl	Fri Jul  8 02:51:47 1994
--- netaudio/config/NetAudio.tmpl	Fri Jul  8 02:53:06 1994
***************
*** 23,28 ****
--- 23,30 ----
   * 
   */
  
+  EXTRA_DEFINES = -DBSD44SOCKETS
+ 
           AULIB = $(TOP)/lib/audio/libaudio.a
       AUDIOLIBS = $(AULIB) -lm
    AUDIODEPLIBS = $(AULIB)
--------------------------------------------------------------------------

Also, the 'auedit' client does not compile because source file:

	netaudio/clients/audio/auedit/Graph.c

tries to include a file <values.h>.

The nearest thing to a <values.h> I could find on my system is:

	/usr/include/g++/values.h

I was able to hack a copy of that file to make Graph.c happy. (I just made
a copy of it and removed one C++-style comment.)

---

BTW: I found that netaudio (using the audemo program) makes a distinct popping
noise at the beginning and end of each sample. (I'm using a SoundBlaster Pro)

Does anyone know what causes this? (It's not a hardware problem and it's not
the samples: The same pops show up when I play the xboing sound effects, but
there are no pops when xboing plays them.)

---

    Bret Orsburn
    borsburn@mcs.kent.edu