Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Sound in linux (Lack of standards in Linux is a problem but there are some near-standards)
Re: Sound in linux [message #44087 is a reply to message #44084] Wed, 24 December 2014 04:40 Go to previous messageGo to previous message
rainbowsally is currently offline  rainbowsally
Messages: 29
Registered: December 2014
Promising Member
Hi Klugier.

On my system, I don't have ogg123 (at this time). I have gst123 (a gstreamer version with a bit more flexibility).

There's so many variations in linux. And xdg-open won't play anything if there's no mime-link set for it.

Your solution works, but it's probably even less generic than 'play'.

"play" is in the sox package and handles all kinds of different sound formats, not just ogg/vorbis stuff. It's a commandline utility but it is very handy to convert between audio formats.

But if you've got what you need now, you probably don't need to get sox. It's a bit overkill, though it is quite useful at times.


Klugier wrote on Tue, 23 December 2014 14:49
Hello,

I think there is a problem with this code. "play" command is not install by default on my distribution (Kubuntu), so the sound cannot be played. Alternatively, I can use command "ogg123" to play .ogg audio file.

So, I am almost sure that above solution is not distribution independent and should be improved for example if "play" is not detected use "ogg123" instead.

Sincerely,
Klugier

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Raster::Line segfaults ... sometimes.
Next Topic: Adding network proxy support to U++
Goto Forum:
  


Current Time: Sun May 12 05:53:07 CEST 2024

Total time taken to generate the page: 0.03316 seconds