Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Andreas U. Trottmann" <andreas.trottmann@werft22.com>
To: axp-list@redhat.com
Subject: Re: New mpg123-0.59o Alpha diff
Date: Fri, 23 Oct 1998 19:36:13 +0200	[thread overview]
Message-ID: <19981023193613.A18741@mail.aart.ch> (raw)
In-Reply-To: <9810231413.AA21942@parrix19.mpi-stuttgart.mpg.de>; from Roman Martonak on Fri, Oct 23, 1998 at 04:13:12PM +0200

On Fri, Oct 23, 1998 at 04:13:12PM +0200, Roman Martonak wrote:

> Is this version able to play directly from URL ?

Nope. But inserting 

   setbuf(myfile, 0);

after line 223 in httpget.c (after the fdopen, just before relocate = FALSE)
makes it work for me.

The reason is that mpg123 mixes buffered (fgets) and unbuffered (read)
calls on the network sockets which causes it to "miss" the beginning of
the MP3 -> you only hear garbage. The fix just makes it use no buffer in
any way; there would probably be better ways to do this.

I mailed this to the author of mpg123 a couple of weeks ago (when I needed
a mpg123 that could play from URLs :) ) but never got a reply.

-- 
Andreas Trottmann <andreas.trottmann@werft22.com>


  parent reply	other threads:[~1998-10-23 17:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-23 14:13 New mpg123-0.59o Alpha diff Roman Martonak
1998-10-23 14:15 ` mgraffam
1998-10-23 14:15 ` Nils Faerber
1998-10-23 17:36 ` Andreas U. Trottmann [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-10-23 14:03 Nils Faerber
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox