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 |
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:49Hello,
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
|
|
|
|
|
Sound in linux
|
|
|
Re: Sound in linux
By: mirek on Wed, 17 December 2014 11:30
|
|
|
Re: Sound in linux
|
|
|
Re: Sound in linux
By: mirek on Wed, 17 December 2014 19:56
|
|
|
Re: Sound in linux (& generic launchers)
|
|
|
Re: Sound in linux (& generic launchers)
|
|
|
Re: Sound in linux
|
|
|
Re: Sound in linux
|
|
|
Re: Sound in linux
|
|
|
Re: Sound in linux
|
|
|
Re: Sound in linux
|
|
|
Re: Sound in linux
|
|
|
Re: Sound in linux
By: Klugier on Tue, 23 December 2014 14:49
|
|
|
Re: Sound in linux
|
|
|
Re: Sound in linux
By: mirek on Wed, 24 December 2014 12:27
|
|
|
Re: Sound in linux
By: Klugier on Wed, 24 December 2014 13:18
|
|
|
Re: Sound in linux
By: mirek on Wed, 24 December 2014 15:46
|
|
|
Re: Sound in linux
By: Klugier on Wed, 24 December 2014 16:30
|
|
|
Re: Sound in linux
By: mirek on Thu, 25 December 2014 10:48
|
|
|
Re: Sound in linux
By: Klugier on Thu, 25 December 2014 13:56
|
|
|
Re: Sound in linux
By: mirek on Thu, 25 December 2014 21:01
|
|
|
Re: Sound in linux
|
|
|
Re: Sound in linux
By: Klugier on Thu, 25 December 2014 14:23
|
Goto Forum:
Current Time: Sun May 12 05:53:07 CEST 2024
Total time taken to generate the page: 0.03316 seconds
|