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

Leszek Ciesielski skolima at gmail.com
Sun Jun 10 15:41:34 EDT 2007


I did a bit of research before posting to the list :P

On 6/10/07, Manuel de la Pena <etil15 at gmail.com> wrote:
> Check this out:
>
> http://www.codeproject.com/cs/media/OggPlayer.asp

Uses an unmanaged C++ library for decoding files and plays them
through DirectX, which is hardly portable.

> 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:
>
> http://www.codeproject.com/audio/LittleAudioPlayer.asp
> http://www.codeproject.com/cs/media/MP3Compressor.asp
>
> This examples at codeproject should help you to get around your problem.

Both depend on LAME. I do not want to force the user to install
additional software (except .Net runtime). And distributing an MP3
implementation (yes, even a LGPL one like LAME) requires paying
royalties to Fraunhofer Society.

>
> I hope it helps
>
> Manuel
>
> On 10 Jun 2007, at 20:09, Leszek Ciesielski wrote:
>
> > Hi,
> >
> > 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
> > (http://evemon.battleclinic.com/cgi-bin/trac.cgi/browser/EVEMon/
> > trunk/MP3Player.cs).
> > 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?
> >
> > Regards,
> >
> > skolima
> >
> > --
> > 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
> > http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>


-- 
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