Replies: 2 comments
-
It is achievable but quite complex to implement well. There is a very basic network streaming demo in the NAudio demo app, showing how you could send compressed audio over the network, decompress it on the receiving end and play it. But for a production ready experience you'd want to use more efficient codecs that NAudio may not support so well, as well as trying to manage buffering correctly to avoid dropouts. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes i predicted needing to do some buffering. Wasn’t exactly how that
would work . Adding to the end of the stream while playing it .
I was also going to include a position marker so everyone is playing at
the same time.
But you nailed my issue what trying to figure out the buffering how to open
a stream to a port and the receiver would have to handle buffering it etc
Thank you for the reply
…On Sat, Jul 8, 2023 at 1:31 PM Mark Heath ***@***.***> wrote:
It is achievable but quite complex to implement well. There is a very
basic network streaming demo in the NAudio demo app, showing how you could
send compressed audio over the network, decompress it on the receiving end
and play it. But for a production ready experience you'd want to use more
efficient codecs that NAudio may not support so well, as well as trying to
manage buffering correctly to avoid dropouts.
—
Reply to this email directly, view it on GitHub
<#1042 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA2P4Q7GTX6KSOLD2NVVON3XPG7TFANCNFSM6AAAAAAZTNYHE4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am mostly familiar with C# and have done some C and CPP a long time ago. I was wondering if NAudio would be a gout way to open a music file wav or MP3 most likely and stream it over sockets. I have sent thing via sockets before, but not music.
the listeners will be PC's or possibly Raspberry PI or similar.
I am not sure, how to read in the socket data and then re-hydrate it into something that the listener will then feed that to a player like NAudio to play it It would be nice to be avvle to buffer it and not have to send it in a stream and not all at once....
So my solution I create needs to work in a cross platform type situation or have a different player that the Listener can work with.
I hope that this makes some sensee
Beta Was this translation helpful? Give feedback.
All reactions