NoUserOrg

Reto Spoerri : Game Design : Zürich

ProgrammingPanda3dTutorialSounds

Filed in: Resources.ProgrammingPanda3dTutorialSounds · Modified on : Fri, 31 Jul 09

====== Sounds ======

===== Sound Basics =====

<code type="Python"> soundEffect = loader.loadSfx( 'effekt.wav' ) soundEffect.play() </code>

http://www.panda3d.org/wiki/index.php/Loading_and_Playing_Sounds_and_Music

===== Sounds manipulieren =====

<code type="Python"> soundEffect.setLoop(True) </code>

http://www.panda3d.org/wiki/index.php/Manipulating_Sounds

===== 3D Audio =====

<code type="Python"> from direct.showbase import Audio3DManager audio3d = Audio3DManager.Audio3DManager(base.sfxManagerList[0], camera) audio3d.attachSoundToObject( mySound, teapot ) </code>

http://www.panda3d.org/wiki/index.php/3DAudio