🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.socket
7 messages
7 total messages Started by Lapo Guidi Fri, 28 Oct 2005 00:16
TIdTCPServer / TIdTCP Client and audio streaming
#3214
Author: Lapo Guidi
Date: Fri, 28 Oct 2005 00:16
10 lines
1265 bytes
Hi all,
I'm trying to send an MP3 file from a TIdTCPServer to a TIdTCPClient while 
it playing.
Could somebody help me?
The final goal is to hear the sound remotely from the client of an MP3 
stored on the server while the file is transferring.

Thanks for any kind of help.

Lapo 
Re: TIdTCPServer / TIdTCP Client and audio streaming
#3215
Author: Jonathan Benedicto
Date: Fri, 28 Oct 2005 00:38
8 lines
1239 bytes
Lapo Guidi wrote:
> I'm trying to send an MP3 file from a TIdTCPServer to a TIdTCPClient
> while it playing.
> Could somebody help me?

Have you already written the code to transfer the file ?

Jonathan
Re: TIdTCPServer / TIdTCP Client and audio streaming
#3216
Author: Lapo Guidi
Date: Fri, 28 Oct 2005 09:39
10 lines
1340 bytes
Not yet completely.
After the client request it, the server send a Stream to the client.
The client receive the Stream.
When the Stream terminated to transfer, the mp3 is played, but this is not 
what I need, I would hear the mp3 playing while download the stream like 
Media player or similar do.

Have you some tips?

Lapo 
Re: TIdTCPServer / TIdTCP Client and audio streaming
#3217
Author: Remy Lebeau (TeamB)
Date: Fri, 28 Oct 2005 16:40
14 lines
1361 bytes
"Lapo Guidi" <lapoguidi@inwind.it> wrote in message
news:4361f1ca$1@newsgroups.borland.com...

> When the Stream terminated to transfer, the mp3 is played,
> but this is not what I need, I would hear the mp3 playing
> while download the stream like Media player or similar do.

You have to send the MP3 data in small chunks, such as with
Read/WriteBuffer(), and then pass each chunk to the audio system as soon as
it arrives.


Gambit
Re: TIdTCPServer / TIdTCP Client and audio streaming
#3218
Author: Lapo Guidi
Date: Fri, 28 Oct 2005 21:30
7 lines
1289 bytes
Thanks Remy for the answer.
I supposed to have to do that and I'm trying to write this.
But what about the "audio system" as you called it?

Thanks again for the help

Lapo 
Re: TIdTCPServer / TIdTCP Client and audio streaming
#3219
Author: Remy Lebeau (TeamB)
Date: Fri, 28 Oct 2005 23:23
14 lines
1615 bytes
"Lapo Guidi" <lapoguidi@inwind.it> wrote in message
news:4362985e@newsgroups.borland.com...

> But what about the "audio system" as you called it?

Working with the audio system is beyond the scope of this newsgroup.  It has
nothing to do with socket programming.  Please read the Win32 API Multimedia
documentation for working with audio, and then direct any questions about it
to the "borland.public.cppbuilder.multimedia" or
"borland.public.cppbuilder.nativeapi" newsgroup.


Gambit
Re: TIdTCPServer / TIdTCP Client and audio streaming
#3220
Author: Lapo Guidi
Date: Sat, 29 Oct 2005 00:13
3 lines
1116 bytes
Okay, thanks

Lapo 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads