Where is the sound API in Silverlight? Or, how do I write a music application to run in a browser?

I would like to port a desktop application that will work inside the browser. Cunningham et al suggested using Flash a couple of years ago. I don't think it ever got off its feet. Probably because Flash is not suitable for a complex interactive editing application. Besides simplifying carriage animations and scrolling during Flash playback, it doesn't seem to offer much here. (Would Flex be more appropriate?)

Since I'm mainly a Windows C ++ / C # developer, I hope that Silverlight will provide an API that allows you to access the sound generation capabilities of the computer. Does anyone know how to do this in Silverlight? Something like the old mmsystem.h would be fine. Mark-dot-net blog really bothers me. Perhaps, because these old things are unmanageable, they consider this a security risk for working inside the browser. Obviously, you cannot allow web applications to access the client drive, but access to their audio devices must be secure.

Another option I was considering was porting the application to run as a FireFox plugin. I would appreciate understanding of this approach and the Silverlight approach.

+3
source share
5 answers

Silverlight simply does not have the low-level audio APIs that you will need to write in the application. It does not even support playing WAV files.

There is very little audio support in .NET. Why I created NAudio , but it pretty much depends on interacting with the native APIs, so it is not suitable for Silverlight. I would really like it if MS came up with a low-level streaming audio API for .NET, but at the moment it seems to be the way down the list of priorities.

+3
source

In fact, Flash has long been used to create a "music application." Take a look at the HobNox Audio Tool .

+2
source

While doing some of my own research, I came across this third-party API that allows you to perform advanced sound processing and playback using silverlight.

http://salusemediakit.codeplex.com/

+1
source

I do not believe that you can access the sound "silverlight" API from the client machine. This is partly due to the fact that silverlight is cross-platform, as well as a plugin for which I doubt that there is a great need for access to the sound generation routine. The only thing I can do with Silverlight to support what you want to do is use Silverlight to create a user interface that will interact with the server through web service calls. All sound generation will be done on the server side and returned back to the client.

0
source

Flash hooks 10 added API hooks, which now allow you to view and edit musical notes of notes. Noteflight provides a note editor for web applications in Flash, and Legato provides a web note viewer for retail, also in Flash. Please note that Flash platform applications can be written with several different tools, including Flash Professional, Flex, and IntelliJ IDEA.

I do not know anything equivalent for Silverlight at this moment.

0
source

All Articles