No audio in blender.

I manage to import wav files onto Blender succesfully.

However I am not able to make them sound when I press Alt+A alongside the video tracks. Is this the way it is supposed to work? Just like a typical NLE video edition system?

I tried leaving the mouse pointer on the sequence-strips window when pressing Alt+A. Nothing sounds. On top of the sequence output image preview window (sequence monitor): nothing sounds.

Sound works ok on my system when I am outside Blender: AMD Athlon XP 1600+ 1 Gb RAM with Debian GNU Linux Testing (Etch) branch.

Blender 2.40 alpha1.
What am I doing wrong?

I tried once in 2.37a but as I recall, I had to import the sound into the sequencer, not the audio window. Then I pressed Alt>Shift>A and it worked.

When I imported into the audio window, nothing happened. Maybe it’s the same in 2.4?

No, Andy; I am not importing the wav in the audio window; but right onto the sequencer window; that with the strips.

Anyway I forgot to mention the console output:

Couldn't open audio: DMA memory map failed
Couldn't open audio: No available audio device

What’s this? Sound card ISA pnp 16 bits Sound Blaster Awe Gold works flawless outside blender with Mplayer, Mencoder, audio and video capture, VLC and the like…

Hello fellow Debian user :slight_smile:

Are you using Blender under KDE?
If yes try another desktop ( maybe Gnome or even better Windomaker)
Now sound works?
No? Have you SDL installed ( or libsdl)?
Blender need it
Bye

Hello, OTO.

Yes; as far as I am concerned, Debian is simply ‘beautiful’. I use a very simple desktop: Blackbox; which I deeply love because of its humbleless and proficiency.

Am I still needing SDL or Libsdl?

If so I’d really love to study hard about those packages. Do you think that could help?

Many thanks to you and the community.

ORANGE PROJECT is an inspiration source for many artists…I want to finish my own teaser 100% free software finished: lighting, modelling, rendering and editing under Blender3D; compositing and layout under GiMP; both programs running under Debian GNU Linux.

And now I am having this sound issue…pity…I tried WinXP version of Blender 2.37…audio works ok.

…Tears…

I have to fight against my own fears…this is not so easy at times…help, community!!!

Juan.
Madrid, Spain.

I tested versions 2.37a and 2.36 and console does not complain at all.
So probably console output is not relevant -regarding this at least…-

But still no sound.

Any ideas?

Hello again juanjavier

Me ( and the community) will not abandon your 100% free teaser?

Install libsdl
Open synaptic and choose lisdl1.2 alsa and sound at least
It works for me
Bye

Me ( and the community) will not abandon your 100% free teaser?

Thanx, Oto. I hope to solve this issue and continue the workflow normally. As for the teaser it is expected to be something really free-spirited inside the marcus of “free-as-in-freedom” GNU thing. This will be the teaser for the short-film which is in the works and that will be available on my web to download, along the source .blend files for every shot (of course).

You can check the details on the web.

And as for the sound issue: I checked your suggestions. I installed synaptic and selected libsdl1.2_alsa. Installed it ok. But sound still refuses to emerge.

"…and sound at least "

I don’t get this, sorry. Which package?

Thank you for your support. Needless to say I tried opening Blackbox session as root -chances are wrong privileges on the device-, but this was not the case.

Any ideas welcome!!

Juan
Madrid, Spain.[/quote]

—Wrong. It really matters, I realized. Just to correct. For some -unknown- reason, blender is not able to open the sound device. Checked the permissions on /dev/dsp (which has a symbolic link to dsp0), and by the way I changed permissions to all dsp’s.

chmod 777 dsp*

No luck; doesn’t work.

Full console message:

ALSA lib pcm_dmix.c:802:(snd_pcm_dmix_open) unable to open slave
Couldn't open audio: No available audio device

I get no idea of what is going on. Any clues?

Rehello

Let’s start from the begining

I’m running straight Sarge 3.1 Debian with some “instable” packages
I have an old Sound Blaster pci 128 that works quite well, unless with KDE, because
the %&/@@ ARTS demon sometimes don’t let some apps get the sound device…
ex: XMMS

Have you installed Alsa utils and configured the Alsa driver?
Type alsaconf in a xterm as root and follow the instructions

Install libsdl-sound1.2 ( it’s just some tools)
them in a xterm type
playsound /path to a WAV file somewhere in your HD
Now, if all’s fine you should hear your WAV file ( to stop it? kill the processus :frowning: )
Sound? YEAHHH No sound? Euh I don’t know…

—Well, I am running both testing and sid. As I told, my Creative Soundblaster works flawlessly outside Blender.

I have an old Sound Blaster pci 128 that works quite well, unless with KDE,

—It seems your card and mine are very similar…

Have you installed Alsa utils and configured the Alsa driver?

—Well, I have got Alsa Mixer Gui and Alsa Utils already installed. Anyway I followed your instructions…

Install libsdl-sound1.2 ( it’s just some tools)

—Package installed ok.

them in a xterm type
playsound /path to a WAV file somewhere in your HD

playsound /home/juan/song.wav

Sound comes out perfectly thru my Creative Soundblaster PCI 128, connected to the speakers.

No sound? Euh I don’t know…

Not within Blender. Console keeps telling

Couldn't open audio: No available audio device.

On the other side my system has got onboard sound. This means that I have got two sound systems in the box: one is onboard; the other is PCI sound card. The onboard one is a SiS chipset. I don’t know if giving it a try makes sense or not. Firstly because the PCI card is much better; and secondly because the card WORKS, so it is not a sound-card or system malfunction…

I am at a loose end…Don’t know what to try…Do you have got Blender running with sound under Debian? Hmmm…sounds very strange…

On the other side my system has also got onboard sound as well. The onboard one is a SiS chipset. I don’t know if giving it a try makes sense or not.

----Well; it maybe makes sense; but unfortunately does not solve things. Onboard chip works ok with the “playsound whatever/the/path.wav” option from console. For a VERY strange reason Blender -any version: 2.36, 2.37a and 2.40 alpha 1- refuses to sound.

Now this becomes a true “soap” show :slight_smile:

OK, I have yet some ammo

Choose wathever:
Disable the onboard soundcard on the BIOS settings ( if not done yet)
Run alsaconf as root, go to the ALSA site, browse for your card and add the
given settings to your ~.asound.rc ( need to creat it maybe)
something like this:

pcm.ens1371 {
type hw
card 0
}

ctl.ens1371 {
type hw
card 0
}
bye

----I created a .asoundrc file by hand and stored it in my /home/juan folder; as the alsa site says. As I am at work now, the audio chipset of the computer differs from those in my studio: this is an Intel 8x0; so the file I created was something like

pcm.intel8x0 {
           type hw
           card 0
        }

        ctl.intel8x0 {
           type hw
           card 0
        }

Nothing worked. I opened X and Blender as root; even restarted the system (which was not necessary anyway) and lanuched blender 2.37a from console: When trying to play any .wav console keeps telling the same “Couldn open audio: No avaliable audio device found blah blah blah…”

But there is a point which is not clear, Oto: you mentioned a “~.asoundrc” file, but the alsa site mentions a “.asoundrc” file (without the “~”). I don’t know if this is important or not. The file I created does not contain the “~” in its filename.

Audio still refuses to work in Blender.

Any ideas? Sorry for the inconvenience. Probably the solution may be easier than supposed. I hope so…

—One more thing relating to console messages: If I start Blender from console; then switch to sequence editor window and then try to open an audio file; console instantly replies


fcntl: Invalid argument
fcntl: Invalid argument

But audio gets imported. Later on, when trying to play it, the “couldn’t open audio-no avaliable audio device” msg pops.

We start to know each other well
I guess that know you know that I’m a though guy :slight_smile:

Well I guess that you have done the alsaconf thing?!
OK…euhhh…Have you tried the Blender DEB version ( well, never knows, in
my system both versions work).
Try the KDE desktop
Check the loaded modules
lsmod in a xterm, gives me those sound related modules:

snd_ens1371 25252 1
snd_rawmidi 25316 1 snd_ens1371
snd_seq_device 8264 1 snd_rawmidi
snd_pcm_oss 54376 0
snd_mixer_oss 19904 1 snd_pcm_oss
snd_pcm 97480 2 snd_ens1371,snd_pcm_oss
snd_page_alloc 11720 1 snd_pcm
snd_timer 25668 1 snd_pcm
snd_ac97_codec 69508 1 snd_ens1371
snd 57380 10 snd_ens1371,snd_rawmidi,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_ac97_codec
soundcore 10400 1 snd
gameport 4736 1 snd_ens1371

try to play/REC with let’s say Audacity

WHERE ARE THE LINUX GURUS??? :slight_smile:
Bye

Yes, I did. Did not work as well.

OK…euhhh…Have you tried the Blender DEB version

Blender DEB version? What is it? Apt-get update and then apt-get install blender?

Try the KDE desktop

Ok, Iĺl try it…pity; I was very happy with blacKbox…Let’s give KDE a try…though installing it will be about half an hour long and 390 mb to download and uncompress…

Check the loaded modules
lsmod in a xterm, gives me those sound related modules:

snd_ens1371 25252 1
snd_rawmidi 25316 1 snd_ens1371
snd_seq_device 8264 1 snd_rawmidi
snd_pcm_oss 54376 0
snd_mixer_oss 19904 1 snd_pcm_oss
snd_pcm 97480 2 snd_ens1371,snd_pcm_oss
snd_page_alloc 11720 1 snd_pcm
snd_timer 25668 1 snd_pcm
snd_ac97_codec 69508 1 snd_ens1371
snd 57380 10 snd_ens1371,snd_rawmidi,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_ac97_codec
soundcore 10400 1 snd
gameport 4736 1 snd_ens1371

----Hmmm…I am not very familiar with lsmod. But I’ve noticed that some of the parameters in my lsmod output slighly differ from yours, i.e: snd_ens1371 shows 25252 0 (instead of 1); snd_pcm_oss shows 48168 0…maybe I should read the lsmod documentation a bit…:stuck_out_tongue:

try to play/REC with let’s say Audacity

Ok, I shall try audacity when I’m finished with the installation of KDE. I shall post the results.

WHERE ARE THE LINUX GURUS??? :slight_smile:
Bye

----Maybe in Linuxquestions.org…and where are the BLENDER GURUS? :wink:

Dear Oto and friends at Elysiun: Audacity sounds wonderful. I installed KDE and GNOME under Debian Sarge 3.1. I tested Audacity under Gnome and under KDE. Everything works ok within Audacity. Unfortunately no sound comes out of blender: I am beggining to think that this is a real mistery.

Blender for windows XP works perfectly. But I MUST use Blender for Linux for the project to make sense. I tried both the static and the dynamic versions. Which version do you use? Did you say you run Blender under KDE w/Debian Sarge?

I don’t find a simple explanation to this.

Please, help if anyone out there can!!!

Thanks,
Juan.
Madrid, Spain.

Sorry for the KDE thing, it was not a good idea
But now you have some useful kde libs installed …I hope :slight_smile:

Yes the Blender DEB is just a Debian package that you install with apt-get install blender

Probably it will install the 2.36 version, but the good thing is that will install
all the depedent packages Blender needs

But probably the problem is Openal, you don’t have it installed maybe?!
Bye

—This version was the first I tested; and in fact it is where I discovered the problem.

But probably the problem is Openal, you don’t have it installed maybe?!
Bye

----Got all the packages and libraries related to Openal that “apt-cache search openal” reveals.

----Blender still refuses to sound.

Thanks in advance,

Juan.
Madrid, Spain.

P.S.: IS THIS GOING TO BE A TWO-MOUTH-ONLY DIALOGUE BETWEEN OTO AND JUAN? WHERE ARE ALL THE BLENDERHEADS, GURUS, FORUM-MONKEYS, FORUM-DOGS, FORUM-CATS, FORUM-COCKROACHES OR FORUM-BIRDS OUT THERE? Does every blender under Debian work flawless with audio?

It is CLEARLY a fault of Blender, dammit!!! Audio hardware works smoothly under VLC, Mplayer, Audacity, Playsound, Mencoder…IT IS JUST WITHIN BLENDER ONLY!!!

Oto is trying really hard. Is him the only guy in the world -besides me- that uses Blender under Debian?

Thank you very much to everyone.