From: MBruce on
I am just starting mobile development. I don't know C++ so I am creating an
application managed code in C#. I have a webservice that is returning byte[]
data of a wav file format.

How would I play this on a smartdevice? Should I create a file from the
binary data or stream the data directly to a player?

If I need to save it as a file first, how would I create a wav file with the
byte[] data in C#? I can't seem to find any examples of this on the internet
and I have been searching for a week.

If there is no way to do this for a wav file format, I can also get the
binary data in a QCP format.

Any help would be greatly appreciated.


From: MBruce on
I found the best solution was to save the file locally and play by using the
windowsmediaplayer control.

http://msdn2.microsoft.com/en-us/library/bb262038(VS.85).aspx


"MBruce" wrote:

> I am just starting mobile development. I don't know C++ so I am creating an
> application managed code in C#. I have a webservice that is returning byte[]
> data of a wav file format.
>
> How would I play this on a smartdevice? Should I create a file from the
> binary data or stream the data directly to a player?
>
> If I need to save it as a file first, how would I create a wav file with the
> byte[] data in C#? I can't seem to find any examples of this on the internet
> and I have been searching for a week.
>
> If there is no way to do this for a wav file format, I can also get the
> binary data in a QCP format.
>
> Any help would be greatly appreciated.
>
>