[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:
http://www.codeproject.com/cs/media/OggPlayer.asp
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.
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
More information about the Mono-devel-list
mailing list