[vorbis-dev] Winamp plugin; http streaming

Monty xiphmont at xiph.org
Tue Feb 27 01:45:08 PST 2001



Sorry, had to foward this.  Chris: Majordomo is triggering on the HTML
in the message and rejecting it.  A minor pain, but that alone catches
half the spam that would otherwise show up on the list...

----- Forwarded message from owner-vorbis-dev at xiph.org -----

From: "Chris Moeller" <chris at kode54.net>
To: <vorbis-dev at xiph.org>
Subject: Winamp plugin; http streaming
Date: Mon, 26 Feb 2001 20:50:02 -0800
MIME-Version: 1.0
Content-Type: multipart/alternative;
        boundary="----=_NextPart_000_0093_01C0A035.B08D3950"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400

Changing this line from httpstream.c in the BufferThread function:

bytesRead =3D recv(pThreadData->tcpSocket, pThreadData->circularBuffer + =
pThreadData->circularBufferEnd, 1, 0);

to read as follows:

bytesRead =3D recv(pThreadData->tcpSocket, pThreadData->circularBuffer + =
pThreadData->circularBufferEnd, bytesToRead, 0);

peeds up streaming noticeably, as the plug-in doesn't spend half the =
time streaming in the file 1 byte at a time.

Comments are appreciated.

    -Chris M.

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list