Silverlight Audio Output

I am looking to develop a Silverlight application that will receive a data stream (and not an audio stream as such) from a web server.

Then the data stream will be processed to transmit sound in a certain format (for example, G.711 a-Law), which will then be converted to PCM so that additional effects can be applied (for example, to increase the volume).

I'm fine up to this point. I have data converted by G.711 to PCM, but my problem is to output that PCM sound to a sound card.

I base the solution on some C # code for a .NET application, but in Silverlight there is a problem trying to take a copy of the delegate (function pointer), which will be the subject of a separate question when I created a simple code example.

So, the question is ... How can I output the PCM sound that I saved in the data structure (currently an array) in my Silverlight for the user? (Please do not say, write the byte values ​​in the text box)

If it was an MP3 or WMA file, I would play it using MediaElement, but I do not want it to get into the file, as this would prevent the application of dynamic effects to the audio.

I saw several messages from people talking about low sound support, poorly / does not exist in Silverlight, so I am open to any suggestions / ideas that people may have.

+2
source share
4 answers

, PCM Silverlight 2. , PCM MP3, . , MediaElement .

, - ?

: API Silverlight? , ?

: Silverlight 3 . , WMA MP3, DRM, - .

+4

- - mp3 WMA ( , WMA , "" PCM).

PCM Silverlight :
* PCM mp3- .
* mp3- , ManagedMediaHelpers. Mp3MediaStreamSource ( System.Windows.Media.MediaStreamSource), mp3- MediaElement . , , , .

, PCM MediaStreamSource, . , ( , - Speex) !

0

It looks like Silverlight 3 now supports direct PCM output or will be released. I don't see anything in the docs on the raw AV pipeline.

0
source

Source: https://habr.com/ru/post/1784813/


All Articles