* EsounD / wait_for_tcp_memory / xanim
@ 1998-09-03 4:51 Bibek Sahu
1998-09-04 9:15 ` David Alan Gilbert
0 siblings, 1 reply; 3+ messages in thread
From: Bibek Sahu @ 1998-09-03 4:51 UTC (permalink / raw)
To: axp-list
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1550 bytes --]
Being as I just made this, it's hard to call it an alpha problem.
However, by what I've seen, it appears to be.
The attached patch provides EsounD support in xanim27070. It's
created off of esound 0.2.4, with support for falling back to OSS if esd
(the esound daemon) isn't running.
It appears to work right when using fallback (i.e., talking to OSS
directly). However, when esd is running, it connects to esd via. a TCP
pipe. In my case, that's over loopback. When connected to esd, it plays
the first ~320k of data, then stops sending data over the pipe.
According to ps, the xanim sound process is blocking on
wait_for_tcp_memory. Why it's waiting for anything, I don't know... it's
a playback only (basically write-only) stream.
If, after the process stops, it is killed with a SIGINT or SIGTERM
(maybe others; dunno) it plays another ~3 seconds of data before
completely dying. Also, presumably because it's blocking on
wait_for_tcp_memory, the second (sound) process doesn't die when one
clicks 'Exit'.
I sent the same patch to a friend of mine running an x86.
Apparently for him, it works just fine. I'll send it out to the esound
guy soon so it can at least be out for a few folks. It can go to the
xanim person once I can make the bloody thing _work_ on my machine. ;-)
I'd like to know if this works for any alpha users out there. For
the record, I'm running 2.1.115 on a sx164, with esound 0.2.4.
Any and all help is appreciated.
Thanks!
- Bibek
[-- Attachment #2: Type: APPLICATION/octet-stream, Size: 2770 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: EsounD / wait_for_tcp_memory / xanim
1998-09-03 4:51 EsounD / wait_for_tcp_memory / xanim Bibek Sahu
@ 1998-09-04 9:15 ` David Alan Gilbert
1998-09-05 5:39 ` Bibek Sahu
0 siblings, 1 reply; 3+ messages in thread
From: David Alan Gilbert @ 1998-09-04 9:15 UTC (permalink / raw)
To: axp-list
Bibek Sahu wrote:
> The attached patch provides EsounD support in xanim27070. It's
> created off of esound 0.2.4, with support for falling back to OSS if esd
> (the esound daemon) isn't running.
Just remind those of us who are ignorant; what exactly is 'EsounD'.
Dave
--
----------------------------------------------------------------------
- Dr. David Alan Gilbert - WARNING! This is a beta release .signature-
- Work: dg @ cogency.co.uk - +44-(0)161-428-9444 -
- Home: gro.gilbert @ treblig.org - -
----------------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: EsounD / wait_for_tcp_memory / xanim
1998-09-04 9:15 ` David Alan Gilbert
@ 1998-09-05 5:39 ` Bibek Sahu
0 siblings, 0 replies; 3+ messages in thread
From: Bibek Sahu @ 1998-09-05 5:39 UTC (permalink / raw)
To: axp-list
DOH! My mistake. In my first message, I went into detail... then
pine crashed. :-(
Anyhow, EsounD is an audio program / library to mix multiple
streams. Similar in concept to NAS but much simpler and, in my
experience, works much better.
I use it so that I can use multiple sound programs simultaneously
(e.g., mpg123 to play mp3s and, here, xanim to play video _and_ audio...
until it xanim stops writing, anyhow). It has a few other handy features
as well, but those are the biggies. And it's much easier to implement than
NAS.
The problem seems to be related to timing in xanim, but it doesn't
occur until it (apparently) saturates the pipe. It shovels data into the
pipe much more quickly than the daemon at the other end reads it. If I
tell the daemon that it's getting sound at 13000Hz (instead of the 11127
that it's really being sent) then everything functions. Except that
everbody's voice is very high pitched. ;-}
When the pipe get saturated, the end that xanim is writing to
blocks (as it should). However, at that point esd stops receiving data as
well (which should NOT be the case...). The wait_for_tcp_memory function
loops continuously until it either gets a signal or there's memory
available. However, since the pipe ... effectively stops ... esd never
reads more from the pipe (it uses select), hence the memory never gets
freed and the loop never exits unless it gets a signal.
Any ideas? Any more questions I can answer?
Thanks!
- Bob
On Fri, 4 Sep 1998, David Alan Gilbert wrote:
> Bibek Sahu wrote:
>
> > The attached patch provides EsounD support in xanim27070. It's
> > created off of esound 0.2.4, with support for falling back to OSS if esd
> > (the esound daemon) isn't running.
>
> Just remind those of us who are ignorant; what exactly is 'EsounD'.
>
> Dave
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1998-09-05 2:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-09-03 4:51 EsounD / wait_for_tcp_memory / xanim Bibek Sahu
1998-09-04 9:15 ` David Alan Gilbert
1998-09-05 5:39 ` Bibek Sahu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox