PDA

View Full Version : No sound


haloboydeath
11-08-2008, 01:06 PM
No sound =<

I'm running Ubuntu 8.10

Inkster
11-08-2008, 02:37 PM
what sound card are you using?

Znurre
11-08-2008, 02:45 PM
Install openal.

Mikan
11-08-2008, 10:54 PM
Please don't use Ubuntu's OpenAL package if you want good sound. It is quite bad.

Open up a terminal, then type:
sudo su
And enter your password, and then:

apt-get remove libopenal0a
apt-get install build-essential libasound2-dev cmake wget tar bzip2
exit

wget http://kcat.strangesoft.net/openal-releases/openal-soft-1.5.304.tar.bz2
tar -jxvf openal-soft-1.5.304.tar.bz2 && cd openal-soft-1.5.304
cmake . && make && sudo make install


Also if you are on the vanilla GNOME version of Ubuntu, you likely won't be able to get sound in any configuration, because they use PulseAudio instead of ALSA now, in a permanent way.

I say permanent because they made GNOME depend on it, thus it cannot be removed.

You will need to wait until either OpenAL Soft or NGD officially supports PulseAudio.
(Although some people have had some luck with it's ESD emulation...)

Regards,

haloboydeath
11-09-2008, 07:16 AM
I'll try that out later tonight. I'm on my old machine right now.

Oh, and thank you for the help.

haloboydeath
11-10-2008, 03:01 PM
I got it to work. I just changed the sound setting's around.

hibikirei
11-11-2008, 06:40 PM
i dont have any sound i tried to enter the su command but it says that authentication fails and i have tried all the different configurations for both of the sound cards i have in the computer i am running ubuntu 8.10 with a c-media surrround card by A Open

tharla
11-11-2008, 08:39 PM
It's easy to fix it on Debian:

Add this line to your /etc/apt/sources.list:

deb %%% experimental main

where %%% is the normal URL for the debian mirror you use.

Then run as root: apt-get install libopenal1/experimental

Afterwards, remove or comment out the experimental line you added. This fix may also work on Ubuntu, or it may break it.

Froste
11-11-2008, 09:41 PM
What's the difference between the openal in experimental compared to lenny?

I use the lenny one now (1:0.0.8-8) and the etch before that, and I've never had a problem with it, is the experimental version significantly newer?

Mikan
11-11-2008, 10:41 PM
i dont have any sound i tried to enter the su command but it says that authentication fails and i have tried all the different configurations for both of the sound cards i have in the computer i am running ubuntu 8.10 with a c-media surrround card by A Open
You can also try sudo su or sudo sh to enter a root shell with your own password.

What's the difference between the openal in experimental compared to lenny?

I use the lenny one now (1:0.0.8-8) and the etch before that, and I've never had a problem with it, is the experimental version significantly newer?
The OpenAL libraries provided by distributions (libopenal, as it is so called) isn't an actual library, it's more like an example. That's why Creative calls it the SI ("Sample Implementation"). This means that how good it works varies greatly depending on your hardware and system configuration.

The new experimental package is none other than OpenAL Soft:

OpenAL, the Open Audio Library, is a joint effort to create an open, vendor-neutral, cross-platform API for interactive, primarily spatialized audio. OpenAL's primary audience are application developers and desktop users that rely on portable standards like OpenGL, for games and other multimedia applications.

This library is meant as a compatible update/replacement to the OpenAL Sample Implementation (the SI). The SI has been unmaintained for quite a while, and would require a lot of work to clean up. This is a fork the old Windows version to attempt an accelerated ALSA version of an OpenAL implementation.

OpenAL Soft supports mono, stereo, 4-channel, 5.1, 6.1, and 7.1 output, as opposed to the SI's 4-channel max (though it did have some provisions for 6 channel, this was not 5.1, and was seemingly a "late" addition). OpenAL Soft does not support the Vorbis and MP3 extensions, however those were considered deprecated even in the SI. It does, though, support some of the newer extensions like AL_EXT_FLOAT32 and AL_EXT_MCFORMATS for multi-channel and floating-point formats, as well as ALC_EXT_EFX for environmental audio effects, and others.

OpenAL Soft is a true reference implementation that supports the OpenAL 3D sound API "to a T". Furthermore, because it uses software mixing, it guarantees that all users will be hearing the exact same thing, regardless of how poor or awesome their hardware is.

Regards,

haloboydeath
11-12-2008, 09:16 AM
I got the sound to work just by changing a few options... but I had to reinstall ubuntu... and it no longer has sound... :crying1:

Froste
11-12-2008, 05:32 PM
But shouldn't openal just redirect the sound to whatever output you've chosen, why would it do its own software mixing? Does the current (the regular/old/SI) openal avoid doing software mixing? And what does it mean by deprecating vorbis extensions?

Mikan
11-12-2008, 09:35 PM
But shouldn't openal just redirect the sound to whatever output you've chosen, why would it do its own software mixing? Does the current (the regular/old/SI) openal avoid doing software mixing? And what does it mean by deprecating vorbis extensions?
Most sound cards, especially those embedded in motherboards, do not have 3D audio.

When you play sound with OpenAL from a 3D game, the game doesn't actually perform any operations such as spatialization. It simply says "the listener is at X,Y,Z and the sound source is at X,Y,Z" and relies on OpenAL to not only transform that into a 2-dimensional space, but also to localize it depending on the user's speaker setup. For example, on stereo speakers, the sound can only come from the left or the right, but on surround sound speakers, it can come from any number of directions.

Applications that are written to use OpenAL know absolutely nothing about this, and most sound cards don't support it either. In fact, most sound cards these days don't even support multiple applications (basically only accepting 1 sound stream at any given time), and require a software mixer to perform the work even for normal desktop use. Such a mixer is usually implemented in the drivers on Windows, or ALSA or alternate sound systems such as aRts or ESD on Linux.

The only sound cards which tend to have OpenAL accelerated in hardware are those which use chipsets which have largely manufactured by Creative, and with the regression of the Sound Blaster as a staple in computers over the last decade, they tend to be few and far between.

DirectX's DirectSound3D has been widely supported in hardware up until a few years ago, but even that is going to fade out completely, as Vista dropped support for hardware-accelerated DirectSound3D, meaning manufacturers no longer have any reason to include 3D audio in sound cards whatsoever.

So these days the only way to get reliable 3D audio support without implementing it directly in the application (which is the approach games like Half Life 2 have taken), is to use a library such as OpenAL, and an implementation that falls back upon software mixing whenever a hardware interface is not available (which will be in most cases), or alternatively, due to the low prevailance of 3D audio support in sound cards, just use software mixing all of the time and avoid the extra maintenance overhead.

Regards,

Froste
11-12-2008, 10:42 PM
But that's what I don't get, artsd, esd, dmix jack and now pulse are the software mixers in linux, does openal incorporate its own software mixer before that? Or is it only the new openal-soft that does this?

As you prolly know I've got an sblive which does its own hardware mixing, and I'd rather use the option that offloads as much as it can onto the hardware so I don't have to use cpu resources for handling the sound mixing, would openal-soft interfere with this and still insist on doing software mixing?

Mikan
11-13-2008, 12:01 AM
But that's what I don't get, artsd, esd, dmix jack and now pulse are the software mixers in linux, does openal incorporate its own software mixer before that? Or is it only the new openal-soft that does this?

As you prolly know I've got an sblive which does its own hardware mixing, and I'd rather use the option that offloads as much as it can onto the hardware so I don't have to use cpu resources for handling the sound mixing, would openal-soft interfere with this and still insist on doing software mixing?
Sound servers on Linux are only for 2D audio, to handle the problem of multiple applications needing to play sound simultaneously. This is normally handled directly in the drivers on Windows, giving a sort of transparency (but it's still very much there).

OpenAL has to account for alot more than just sending sound to one or two speakers or more, it has to account for real-world effects like the speed of sound (http://en.wikipedia.org/wiki/Speed_of_sound), occluding objects between the listener and the source (http://en.wikipedia.org/wiki/Occlusion), and the doppler effect (http://en.wikipedia.org/wiki/Doppler_effect). That's why you need OpenAL to compliment to OpenGL.

As for the mixing problem, the truth is OpenAL has never been accelerated on Linux. That is why the original goals of OpenAL Soft were to port the Windows version and make it accelerated under ALSA, so that it would use your existing 3D sound hardware (such as an SB Live). For whatever reasons, this proved to be impossible, and the author changed goals.

So unless you use Windows, you've never had and never will have 3D sound acceleration, and the only features being used from your sound card are it's 2D output capabilities, possibly with surround sound support (which is still 2D, as you can't have speakers below or above you).

And even on Windows, you only have it if you're using Windows XP or older.

Regards,

Panda_Bear
11-13-2008, 07:01 AM
i got my sound on linux running by doing the openalrc override stuff works a treat