- Home /
using NAudio library with Android to play Icecast stream
Hi,
I've created an app in unity that plays an icecast stream. I'm using the NAudio library to get the stream, decompress it and play it out. The app works fine in windows, but no sound gets played when I test it on an Android Phone. I'm fairly sure this is to do with NAudio only been compatible with windows when it comes to playing the sound through a device.
So my question(s) is has anyone been able to get NAudio to work with android? And if not can anyone advise me on a solution? Or has anyone managed to get Unity to play an icecast stream without using NAudio? As I have never managed to get the WWW class to correctly retrieve and play the icecast stream.
I did think maybe I could write an AudioClip on the fly, and get Unity to play the audio clip. But as NAudio uses multiple threads I would like to avoid this if possible.
Thanks,
Brett