[Mono-dev] Porting to linux - replacement for winmm.dll

Leszek Ciesielski skolima at gmail.com
Sun Jun 10 15:09:16 EDT 2007


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

More information about the Mono-devel-list mailing list