Dirk80 has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
The following code is working perfectly when I'm using my linux OS.
#!/usr/bin/perl use strict; use warnings; use SDL::Mixer; use SDL::Music; my $mixer = eval { SDL::Mixer->new(-frequency => 44100, -channels => 2 +, -size => 1024); }; $mixer->music_volume(20); my $music = new SDL::Music './test.mp3' or die $!; $mixer->play_music($music,0); #0 for single play while(1) { if( $mixer->playing_music() ) { sleep(1); } else { last; } }
But when I'm using Windows Vista it is not working. I get the follwing error message:
Module format not recognized at play_mp3.pl line 13What do I have to do to play a mp3 file with sdl on Windows Vista?
Thank you very much for your help
Dirk
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: playing mp3 files with SDL on Win32
by keszler (Priest) on Nov 29, 2009 at 16:44 UTC | |
Re: playing mp3 files with SDL on Win32
by spx2 (Deacon) on Nov 29, 2009 at 16:59 UTC | |
by Anonymous Monk on Dec 01, 2009 at 00:18 UTC | |
Re: playing mp3 files with SDL on Win32
by Joost (Canon) on Nov 29, 2009 at 23:47 UTC | |
Re: playing mp3 files with SDL on Win32
by Anonymous Monk on Nov 30, 2009 at 04:41 UTC | |
by tallulah (Novice) on Nov 30, 2009 at 06:59 UTC | |
Re: playing mp3 files with SDL on Win32
by kthakore (Acolyte) on Dec 01, 2009 at 01:01 UTC | |
by Anonymous Monk on Mar 12, 2010 at 10:47 UTC |
Back to
Seekers of Perl Wisdom