Audio streaming
-
Hi to you, I'm looking for a way to stream audio-outputs over a local net. So first I have to program a server, which listen the wav-output and secound I have to make a client which access data from the server using ftp. At the end, I can hear the same music over several floors using wlan. Could everone help me to realise this? Thank you! Meinhard
-
Hi to you, I'm looking for a way to stream audio-outputs over a local net. So first I have to program a server, which listen the wav-output and secound I have to make a client which access data from the server using ftp. At the end, I can hear the same music over several floors using wlan. Could everone help me to realise this? Thank you! Meinhard
You might look at UDP rather than FTP for streaming. The tigress is here :-D
-
Hi to you, I'm looking for a way to stream audio-outputs over a local net. So first I have to program a server, which listen the wav-output and secound I have to make a client which access data from the server using ftp. At the end, I can hear the same music over several floors using wlan. Could everone help me to realise this? Thank you! Meinhard
You canuse WaveOut And WaveIn API,s for in/out Audio. UDP is The the suitable WAy to transfer Voice DAta, You Must Use RTP_Real Time Protocol To Syncronize Source and Destination, :laugh: This is Simply Works!!!!
-
Hi to you, I'm looking for a way to stream audio-outputs over a local net. So first I have to program a server, which listen the wav-output and secound I have to make a client which access data from the server using ftp. At the end, I can hear the same music over several floors using wlan. Could everone help me to realise this? Thank you! Meinhard
FTP is a file transfer protocol, you can not use it for streaming! Either use TCP (which is easier to handle) or UDP! The way the whole thing works is quite easy. You can either send uncompressed data (WLan should be fast enough) or better use compressed data if you have many streaming clients or the connection is too slow. For that case I personally wouldn't use RTP because it is difficult to implement if you don't want to use the live library or any other RTP library. Since WLan normally is a reliable network I propose you use TCP. Before streaming transmit the settings of the data to the client (sampling rate, bits per sample, ...). The streaming is easy then: -create a directsound buffer (should be big to prevent lags!) -decompress (if compressed) -load the data in a (big) directsound buffer. -after the buffer gets full the first time, you should run it. Don't try it, just do it! ;-)
-
You canuse WaveOut And WaveIn API,s for in/out Audio. UDP is The the suitable WAy to transfer Voice DAta, You Must Use RTP_Real Time Protocol To Syncronize Source and Destination, :laugh: This is Simply Works!!!!
Synchronization does not make sense here, because it can't be synchron (network delay!) and you only have one stream. Don't try it, just do it! ;-)