[Mono-dev] Porting to linux - replacement for winmm.dll
Manuel de la Pena
etil15 at gmail.com
Sun Jun 10 15:01:32 EDT 2007
Check this out:
I should help... But if you want to play mp3 files you should
consider using lame. Lame should work on Linux and Windows, check this:
This examples at codeproject should help you to get around your problem.
I hope it helps
On 10 Jun 2007, at 20:09, Leszek Ciesielski wrote:
> I am hacking around, making EveMon (http://evemon.battleclinic.com/) a
> cross platform application. Mostly it involves watching Jonathan Pobst
> finish MWF (great work!) ;-) There are, however, some windowisms in
> EveMon code that need fixing.
> One of the non-trival issues is playing a short jingle after a task
> completes. Currently this involves P/Invoking into winmm.dll
> I'd like to play the sound in a way that would work across platforms.
> I found the System.Media.SoundPlayer class, which can play .wav files
> and works on mono. However, EveMon currently ships with .mp3 files, so
> replacing them with .wav is not an option. An .ogg player, on the
> other hand, would be a nice alternative. There is a csvorbis project
> in the mono repository - I managed to use it to get tag information
> out of a music file, but I do not know how to play anything with it.
> The code itself is a bit cryptic.
> Does anyone know a portable (pure C#) way to play Ogg Vorbis files?
> MS-DOS user since 5.0
> Windows user since 3.11
> Linux user since kernel 2.4
> Novell Netware user since 2.2
> WARCRAFT user since 1.0
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
More information about the Mono-devel-list