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 #44106 is a reply to message #44100] Thu, 25 December 2014 13:57 Go to previous messageGo to previous message
rainbowsally is currently offline  rainbowsally
Messages: 29
Registered: December 2014
Promising Member
Hi Klugier and Mirek and Linux developers.

Klugier wrote on Wed, 24 December 2014 16:30
Hello Mirek,

Next problem is GCC warning, because we ignore system return value. What should we do?

int status = system(...)
if (status == -1) return; // <- Throw exception???


Sincerely,
Klugier


Klugier: No throwing an exception wouldn't be helpful. Just ignore the result. Warnings should be shown at compile time, if at all.

Mirek: also, note that the "question" for the question sound in the freedesktop files is window-question.* not dialog-question.* so the code posted here a while back, as written might not find the right file.

I may start checking this stuff out more dillegently in the future... Still figuring out how stuff works.

All: We don't want to hard-code something like ogg123 as the handler or even as a possible handler for the sound files if we plan to ever handle any other extension than .oga or .ogg because ogg123 only handles ogg.

We don't even want it to be an option because if we play something with some other extension it won't work at best and it might hang (zombie) or cause a horrible clicking white-noise racket by playing the wrong format.

This "racket" does happen with other players trying to play mp3s, not sure about ogg123.

Mirek: this brings us back to the serious problem of lack of standards in linux. "play" from the sox package handles practically every format except mp3. Or perhaps we need to develop our own sounds and the player for them. But then, of course, we have the fun task of detecting the system driver, of which there are currently about 5 non-standards to try to detect.

Sox (including which includes "/usr/bin/play") is indeed overkill, but it is very complete and already handles all this linux non-standards nonsense.

PS. Sorry if I misremember any of the names of the files or macros.
 
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: Sat May 11 20:58:06 CEST 2024

Total time taken to generate the page: 0.02475 seconds