I’ve found a few threads about sound not playing in blender. Specifically sounds imported into the Video Sequence Editor.
One suggested work-around is to use ‘blender -g noaudio’ to launch blender from the command line. I haven’t been able to test this because blender isn’t set up to launch from my Ubuntu command line yet. (I don’t know how to do that.)
I’m only having the problem under Linux (Ubuntu). Under Windows XP it’s working fine.
Currently I’m having to use blender under XP because I need to do lipsync. Is there a solution for this problem that I’m unaware of?
The only option that works for me is to recompile libsdl as matiu posted on the bug tracker (then you don’t even need to disable game sound or export any environment variable).
For anyone that doesn’t know how to do that…
Edgy
sudo apt-get install build-essential
sudo apt-get build-dep libsdl1.2debian-all
sudo apt-get source libsdl1.2debian-all
cd libsdl1.2-1.2.10
./configure --prefix=/usr --with-gnu-ld --with-pic --enable-video-opengl --enable-dga --enable-alsa --enable-cdrom
make
sudo make install
Dapper
sudo apt-get install build-essential gcc-3.4
sudo apt-get build-dep libsdl1.2debian-all
sudo apt-get source libsdl1.2debian-all
cd libsdl1.2-1.2.9/upstream/tarballs
tar -xf SDL-1.2.9.tar.gz
cd SDL-1.2.9
export CC=gcc-3.4
./configure --prefix=/usr --with-gnu-ld --with-pic --enable-video-opengl --enable-dga --enable-alsa --enable-cdrom
make
sudo make install
I finally got around to trying this on Ubuntu, but I got an error at this line:
“cd libsdl1.2-1.2.10”
It said no such file or directory exists. Am I doing something wrong ?
Ok, I guess your not running edgy? No problem just do
ls
to list the files and directory’s (look for one starting with libsdl1.2*) and then run the cd (change directory) command with the correct directory/version-number.
i should have also mentioned, I don’t know what a config file looks like. There were a bunch of files in there. One file in the debian folder was called sdl-config.1
The configure file shell script that checks your have everything to compile (gcc, dependencies, ect…), it has no file extention (it’s just called configure ;)).
I downloaded to older source package to see why you where having problems & it’s because for some reason it’s still in a tarball in the upstream directory. Check the post above for updated instructions.
PS. Gonna really suck if this doesn’t fix your sound.
I had more success this time with the new Dapper instructions. The tarballs appeared to extract, and there are a bunch of new files there. However at the make command, I got a lot of cryptic errors.
Just a note, the cd command didn’t actually match my folder names, so I just did it manually instead using my own folder names.
If you can guide me further through the labyrinth that would be great
otherwise I will just continue using Xp until either ubuntu or blender get the necessary updates
Yeah sorry directory name was different because I didn’t get it via apt (forgot to change it).
Well there really isn’t anything to fix in blender (as far as I’m aware) & it’s unlikely that the official ubuntu repositories are going to change the way SDL is compiled. Have you tried disabling the game audio & playing a mp3 when you launch blender as described in the other thread (might be quicker work around for you)? Like a said I’m happy to help (if I can &) if you post the error.
The output is quite lengthy, and there’s a lot of repetition, with only a difference in the file name for example. here is a sample of what it’s spitting out,
Making all in src
make[1]: Entering directory /home/cb/libsdl1.2-1.2.9/upstream/tarballs/SDL-1.2.9/src' Making all in main make[2]: Entering directory/home/cb/libsdl1.2-1.2.9/upstream/tarballs/SDL-1.2.9/src/main’
make[2]: Nothing to be done for all'. make[2]: Leaving directory/home/cb/libsdl1.2-1.2.9/upstream/tarballs/SDL-1.2.9/src/main’
Making all in audio
make[2]: Entering directory `/home/cb/libsdl1.2-1.2.9/upstream/tarballs/SDL-1.2.9/src/audio’
Making all in disk
etc…
and then,
…/…/src/hermes/HeadMMX.h:53: error: ‘ConvertMMX’ aliased to undefined symbol ‘_ConvertMMX’
…/…/src/hermes/HeadMMX.h:63: error: ‘ConvertMMXpII32_24RGB888’ aliased to undefined symbol ‘_ConvertMMXpII32_24RGB888’
…/…/src/hermes/HeadMMX.h:64: error: ‘ConvertMMXpII32_16RGB565’ aliased to undefined symbol ‘_ConvertMMXpII32_16RGB565’
…/…/src/hermes/HeadMMX.h:65: error: ‘ConvertMMXpII32_16BGR565’ aliased to undefined symbol ‘_ConvertMMXpII32_16BGR565’
…/…/src/hermes/HeadMMX.h:66: error: ‘ConvertMMXpII32_16RGB555’ aliased to undefined symbol ‘_ConvertMMXpII32_16RGB555’
oh and yes, I tried the mp3 playing with sound disabled (in the preferences). No luck there…
I can’t get blender -g noaudio to work, because it doesn’t run from command line. I dont think i have it set up right to run from command line, because i just extracted blender into a folder, and run it from there.
This is probably very relevant, Im still using Dapper Drake. I’ve noticed a lot of things I’ve read in forums don’t work because they are tailored to Edgy Eft. I’m planning to upgrade very soon…