Quantcast
Channel: NAudio
Viewing all articles
Browse latest Browse all 5831

New Post: how to decode mp3 byte[] from socket

$
0
0
I am newer to NAudio,i have a mp3 url likes : http://www.abc.com/sample.mp3
and want to download it with socket and store it into byte[] .code likes
quequ<byte[]> _queue;
......

    nBytes = _socket.Receive(recvBuffer, 0, 10240, SocketFlags.None);
    _queue.Enqueue(recvBuffer);

......
I read the demo code of Mp3StreamingDemo and know that Mp3Frame should be used to decode,but it always null.
what should i do?can some one helps me.

Viewing all articles
Browse latest Browse all 5831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>