Audio problems.

05 July 2016 22:18 #10354
I'm pretty sure there's probably just one little thing I'm not doing here.
I have made a test scene. The objective is to just add a background sound
using a speaker object. Seems simple enough but unfortunately I'm getting silence when I view the scene as an exported .html file.

I'm testing with Chrome, IE and authoring with Blend4Web v16.06.

The speaker is positioned pointing down in the center of the space xyz 0,0,5

Tried testing the sound in several formats and resolutions.
but seems like from what I've read , the preferred format is .ogg at 48 kh/16 bit. in this case, stereo,
which is what I'm using.

I ensured that AUDIO is checked in the scene tab and even turned on the dynamic compressor.
I ensured that Audio is un-muted in the viewer

I tested it alternately with the speaker behavior at all three settings( bg musci, bg sound, pos sound).

Still, no sound. Any help would be appreciated.

05 July 2016 22:25 #10355
here is the blend file and the test tone I used
06 July 2016 10:31 #10359
Hello and welcome to our forum!

Unfortunately, if you don't use NLA to control speakers you need to activate "Cyclic Play" checker to start your sound or use engine API.
Blend4Web Team
06 July 2016 20:55 #10374
Thanks Alexander, that has solved it !

15 July 2016 15:29 #10503
With Blend4Web 16.07 we're going to introduce a new "Auto-play" option which explicitly enables audio playback. Thanks for your feedback!
Blend4Web Team
Please register or log in to leave a reply.