« first day (4321 days earlier)      last day (635 days later) » 

2:39 AM
lol I think who did that mistake also had been awake 2 days
 
 
4 hours later…
6:42 AM
Hello everyone, I'm in this section for a live radio https://github.com/learnergthb/TCPClient/blob/main/TCP
If the connection is successful for port 80, what should I do to get sound?https://github.com/learnergthb/TcpUdpProtocolsConnection-XmlFileRead/blob/main/XMLFile1.xml (connection information)
 
6:52 AM
you cant write your own audio codec do you?
just pass the url and let codec do all the work
is that a homework?
 
not homework,I want to try with tcp protocol.
just to learn
 
7:09 AM
Good morning
 
thats depend on how low level you want to learn
from a scratch, to get audio you need codec which is 'convert' streaming data format to pcm, and send pcm signals to audio interface
 
If you want radio, I advise against TCP and to use UDP instead though
 
@nyconing I want to use tcp client
 
For audio, delay is worse than package loss
 
hımm
 
7:11 AM
tcp client is only for data connection
 
TCP guarantees the data arrives in order and complete, but is slower than UDP because of the measures taken to ensure said orderlyness and completeness.
 
I can guess from your reply, you already didnt understand the actual theory of audio streaming
 
To be fair, the theory of audio streaming in its simplest form is "take each frame, throw it through the network, play it on the receiver"
 
Why not just use API which is ready to use? No need to mess with tcp connections
102
Q: Play audio from a stream using C#

MartinIs there a way in C# to play audio (for example, MP3) direcly from a System.IO.Stream that for instance was returend from a WebRequest without saving the data temporarily to the disk? Solution with NAudio With the help of NAudio 1.3 it is possible to: Load an MP3 file from a URL into a Memo...

 
@nyconing you're right
 
7:13 AM
Install dependencies, add dew line of code you ready to go
 
He says his library isn't really built for usage over a network though?
 
We tried with naudio,working
 
Ah nice
 
@nyconing yes works for me. Can it also work using protocol ?
 
I'd wager it already uses a few protocols or else it wouldn't work
At least TCP or UDP, because those are the only two generally available possibilities lol
 
7:31 AM
?
no
tcp or udp are communication protocol, used for data transmit, like connection. they itself not for playing audio
it is for example a fuel delivery hose on your car, you can tell your car are moving using a fuel hose?
 
indeed, the fuel hose act like a connection from your engine and fuel tank, just same like audio streaming, tcp or udp are connection between data streaming server and audio codec/ audio engine
 
        using var client = new TcpClient();
        var hostname = "25643.live.streamtheworld.com";
        client.Connect(hostname,80);     this part is the connection
 
7:50 AM
I was passive aggressively saying "Can it also work using protocol ?" is not precise enough, since the whole thing goes through the network, thus using multiple protocols just for the lower layers, like TCP/UDP on the network layer :)
 
[Squirrel in Training] GoOoOoOoOoOoOoOoOoOoOoOd Mornin' neglecterinos!
 
I'm ignorant :) I'm here (github.com/learnergthb/TCPClient/blob/main/TCP) and I don't know what will happen.
@nyconing but i understand this very well
 
 
2 hours later…
 
4 hours later…
2:06 PM
Guest Post on August 15, 2022
Readable code is great, but not all code will be immediately readable. That’s when you get your interrogation tools.
 
3:04 PM
posted on August 15, 2022 by Taysser Gherfal

We are excited to announce the release of Line-staging support in Visual Studio 2022. Line-staging, a.k.a. interactive staging, enables you to split your changed lines of code across different commits. Line-staging could also be utilized in reviewing your changes before committing them. The post Git Line-staging Released! appeared first on Visual Studio Blog.

 
 
7 hours later…
10:00 PM
 

« first day (4321 days earlier)      last day (635 days later) »