Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linux audio modules?

Status
Not open for further replies.

Kirsle

Programmer
Joined
Jan 21, 2006
Messages
1,179
Location
US
I was wondering if there are any Perl modules that can "natively" play audio files on Linux?

i.e. on Windows there was the standard module Win32::Sound which could play wav files, and then Win32::MediaPlayer used a Windows DLL to play pretty much any type of audio file. Does Linux have any easy solutions like that, or do I have to go and install Audio-Audiere or some other heavy package?

The closest I could find was Audio::Play, but it seems to need some form of audio data to play, not a file name.

-------------
Cuvou.com | The NEW Kirsle.net
 
Okay, this is one of my last three questions which have gone unanswered, which I have found a solution to by myself.

And... the best I've found so far is to use SDL-Perl, and use the SDL::Sound module, which can play WAV files. SDL::Sound can be used independently from an SDL application, so it's good for playing sound effects even from the terminal.

Now to investigate playing MIDI files...

-------------
Cuvou.com | The NEW Kirsle.net
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top