[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [40750] trunk/blender/doc/python_api/ examples/aud.py: Fix for [#28792] Invalid 'aud' documentation examples.

Joerg Mueller nexyon at gmail.com
Sun Oct 2 20:00:06 CEST 2011


Revision: 40750
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=40750
Author:   nexyon
Date:     2011-10-02 18:00:06 +0000 (Sun, 02 Oct 2011)
Log Message:
-----------
Fix for [#28792] Invalid 'aud' documentation examples.

Modified Paths:
--------------
    trunk/blender/doc/python_api/examples/aud.py

Modified: trunk/blender/doc/python_api/examples/aud.py
===================================================================
--- trunk/blender/doc/python_api/examples/aud.py	2011-10-02 17:58:21 UTC (rev 40749)
+++ trunk/blender/doc/python_api/examples/aud.py	2011-10-02 18:00:06 UTC (rev 40750)
@@ -11,10 +11,10 @@
 factory = aud.Factory('music.ogg')
 
 # play the audio, this return a handle to control play/pause
-handle = device.play(sound)
+handle = device.play(factory)
 # if the audio is not too big and will be used often you can buffer it
-factory_buffered = aud.Factory.buffer(sound)
-handle_buffered = device.play(buffered)
+factory_buffered = aud.Factory.buffer(factory)
+handle_buffered = device.play(factory_buffered)
 
 # stop the sounds (otherwise they play until their ends)
 handle.stop()




More information about the Bf-blender-cvs mailing list