Web サーバーからデータ ストリーム (オーディオ ストリーム自体ではない) を取得する Silverlight アプリケーションの開発を検討しています。
次に、データ ストリームを操作して特定の形式 (G.711 a-Law など) の音声を生成し、PCM に変換して、追加の効果 (音量を上げるなど) を適用できるようにします。
I'm OK up to this point. I've got my data, converted the G.711 into PCM but my problem is being able to output this PCM audio to the sound card.
I basing a solution on some C# code intended for a .Net application but in Silverlight there is a problem with trying to take a copy of a delegate (function pointer) which will be the topic of a separate question once I've produced a simple code sample.
So, the question is... How can I output the PCM audio that I have held in a data structure (currently an array) in my Silverlight to the user? (Please don't say write the byte values to a text box)
If it were a MP3 or WMA file I would play it using a MediaElement but I don't want to have to make it into a file as this would put a crimp on applying dynamic effects to the audio.
Silverlight では低レベルのオーディオ サポートが貧弱である、または存在しないという投稿をいくつか見たことがあります。