On 09/13/2010 11:04 PM, ChrisB wrote: > Hi, I wish to play audio files from my application running under > Mono on openSUSE 11.1. I have looked at the System.Media.SoundPlayer > class but that seems to be very limited in the file formats it > supports. I have also investigated using wrappers for other > applications without success. > > My requirements are very basic in that I just wish to be able to > play/stop the audio files and nothing more. I do not have a > requirement to play any video files.
There are two approaches that come to mind: * The Banshee approach. There is a library written in C that provides the glue between Banshee and GStreamer, an open-source library that can (among a wealth of other things) play sound files. The glue library is the only one that you should P/Invoke, and it will need to be compiled for each platform. (Windows support for GStreamer can be tricky.) * The MPlayer approach. I do not know much about this personally, having spent much more time hacking on the Banshee library. But I've heard from others that you can embed an MPlayer instance within your application with relatively little effort. I don't recall whether this is a cross-platform solution or not. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers If you correspond with me on a regular basis, please read this document: http://www.chrishowie.com/email-preferences/ PGP fingerprint: 2B7A B280 8B12 21CC 260A DF65 6FCE 505A CF83 38F5 ------------------------------------------------------------------------ IMPORTANT INFORMATION/DISCLAIMER This document should be read only by those persons to whom it is addressed. If you have received this message it was obviously addressed to you and therefore you can read it. Additionally, by sending an email to ANY of my addresses or to ANY mailing lists to which I am subscribed, whether intentionally or accidentally, you are agreeing that I am "the intended recipient," and that I may do whatever I wish with the contents of any message received from you, unless a pre-existing agreement prohibits me from so doing. This overrides any disclaimer or statement of confidentiality that may be included on your message. _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
