In that case its a matter of calling SoundState::setAmbient(true) (look in the examples).
Look into the osgAL examples for info of how to load wav/ogg and play them. All you have to do is call setAmbient() on one of the soundstates and it will work. Actually, if you do a svn update of osgAL the osgal.cpp example now includes an ambient music piece which can be toggled with 'm' key. So check that out to see how it is done. /Anders On Dec 27, 2007 6:49 PM, maruti borker < [EMAIL PROTECTED]> wrote: > Hey, > Does anyone know how to put up a universal background sound in a > loop which will be continously playing ... Something like a background music > ... the examples of osgAL dont cover this :( > SoundState:: > > -- > ---------------------------------------------- > Maruti Borker > IIIT Hyderabad > Website:- http://students.iiit.ac.in/~maruti > <http://students.iiit.ac.in/%7Emaruti> > Blog:- http://marutiborker.wordpress.com > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > -- ________________________________________________________________ Anders Backman Email: [EMAIL PROTECTED] HPC2N/VRlab Phone: +46 (0)90-786 9936 Umea university Cellular: +46 (0)70-392 64 67 S-901 87 UMEA SWEDEN Fax: +46 90-786 6126 http://www.cs.umu.se/~andersb<http://www.cs.umu.se/%7Eandersb>
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org