[vorbis-dev] Winamp plugin; http streaming

Aaron Porter aaron at javasource.org
Tue Feb 27 10:47:46 PST 2001



> 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);
> 
> speeds 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.

Oops... (sheepish grin)

Nice catch Chris.

Aaron

--- >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