PDA

View Full Version : After loading all my objects


djdesmangles
05-24-2007, 01:35 PM
Hello Wizards,

I would like to play a audio track AFTER all my osg objects finish to load. I've tried "viz.setOption('viz.preload',1)" but the sound still begin during the loading...
What can I do ?

viz.FOREVER,
D.

farshizzo
05-24-2007, 02:45 PM
Try adding the audio object after you add all your models. If that doesn't work, then create a timer event to initialize the audio for the first time. Here is sample code:def InitializeSound():
#Add code to initialize audio objects
pass
vizact.ontimer2(0,0,InitializeSound)

djdesmangles
05-27-2007, 06:30 PM
Hello Wizards,

Thanks for the advice. the timer is working fine... I got another one :
I've tried the vizmic example (realtime liosync). How can I have a loopback ? When I'm talking the avatar head is morphing, but there's no sound in the speaker. I've tried several things, like vizact.parrallel, to record in the wav file and to read it... but I simply don't understand why it doesn't work...

Thanks a lot...
viz.FOREVER
D.

farshizzo
05-31-2007, 11:01 AM
The vizmic module does not currently support looping the microphone audio back through the speakers.

djdesmangles
06-03-2007, 03:23 PM
:confused:

ok... I'm going to see what can find...

viz.FOREVER,
D.