This project has moved and is read-only. For the latest updates, please go here.

Conversion of an online radio stream to PCM, in real-time

Nov 12, 2013 at 10:07 AM
Edited Nov 12, 2013 at 10:48 AM
Could NAudio be used to convert a radio-stream to PCM samples, in real-time?
I've seen documentation and questions regarding conversion of local audio-files, but did not find reference to real-time conversion of an online (radio) stream.

I'm actually interested in calculating audio-signal's power (e.g. in dB or other volume-level units) over the last X seconds.

My current interest is in a ShoutCAST/MP3 stream.

Your assistance would be much obliged.
Nov 12, 2013 at 5:32 PM
hi, have a read of my blog post here about streaming MP3:
NAudio does not decode Shoutcast at the moment.
To calculate power, you'd examine the PCM sample values after decompressing, and perform your own calculations.