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 #44109 is a reply to message #44106] Thu, 25 December 2014 14:23 Go to previous message
Klugier is currently offline  Klugier
Messages: 1083
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello rainbowsally,

Quote:

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.


ogg123 can detect that it cannot play .wav file. It not hangs and not produce noise (Checked by playing wav file). So, we can change the importance of players (* gst123 can handle all interesting formats):
const char *players[] = { "play", "gst123", "ogg123" };


Moreover, I would like to notice that having more trusted players in list we have more likely that someone has got this program.

Sincerely,
Klugier


U++ - one framework to rule them all.

[Updated on: Thu, 25 December 2014 14:26]

Report message to a moderator

 
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: Fri Nov 01 01:02:51 CET 2024

Total time taken to generate the page: 0.02872 seconds