Output procedurally generated (or externally streamed) audio on Windows Phone 7?

You should be able to use the XNA.Framework. Audio namespace SoundEffect to get a soundeffect instance from a raw audio stream. Which should usually be a standard PCM format.

Up vote 0 down vote favorite share g+ share fb share tw.

I'm looking at developing an application for the WP7 platform which accepts an audio stream from a computer and outputs that stream on the phone speaker. This involves either dealing with the audio encoding / decoding myself, or somehow passing off an audio stream to the WP7 platform. I've struggled so far to find any raw audio output API's and I am not sure what I have to do on the server (computer) side to get the phone to just deal with the audio stream.

I have looked at a few MSDN articles, but I can't quite tell if they do what I want. If somebody could point me in the right direction that would be great! I think the MediaStreamSource class does what I'm looking for, and the MediaStreamSource.

ReportGetSampleCompleted method appears to confirm this, but nowhere does it say clearly that it can be used for raw audio. If you need any information, or if you have any suggestions of better ways to do this that would also be appreciated! C# silverlight windows-phone-7 windows-phone-7.1 windows-phone-7.5 link|improve this question asked Nov 10 '11 at 17:31Dotmister70317.

You should be able to use the XNA.Framework. Audio namespace SoundEffect to get a soundeffect instance from a raw audio stream. Which should usually be a standard PCM format.

This post on microphone by Charles Petzold could be useful. An excerpt In contrast, classes in the Microsoft.Xna.Framework. Audio namespace work with uncompressed audio data in the standard PCM format, which is the same method used for audio CDs and Windows WAV files.

Thank you! This should be exactly what I need – Dotmister Nov 11 '11 at 14:04.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions