Module Sound
[frames | no frames]

Module Sound

The Blender.Sound submodule.

Sound

This module provides access to Sound objects in Blender.

Example:
 import Blender
 from Blender import Sound
 #
 sound = Sound.Load("/path/to/my/sound.wav")    # load a sound file
 print "Sound from", sound.getFilename(),
 print "loaded to obj", sound.getName())
 print "All Sounds available now:", Sound.Get()

Classes
Sound This object gives access to Sounds in Blender.

Function Summary
Blender Sound or a list of Blender Sounds Get(name)
Get the Sound object(s) from Blender.
Blender Sound Load(filename)
Load the sound called 'filename' into a Sound object.

Function Details

Get(name=None)

Get the Sound object(s) from Blender.
Parameters:
name - The name of the Sound object.
           (type=string)
Returns:
It depends on the name parameter:
  • (name): The Sound object called name, None if not found;
  • (): A list with all Sound objects in the current scene.

           (type=Blender Sound or a list of Blender Sounds)

Load(filename)

Load the sound called 'filename' into a Sound object.
Parameters:
filename - The full path to the sound file.
           (type=string)
Returns:
A Blender Sound object with the data from filename.
           (type=Blender Sound)

Generated by Epydoc 2.1 on Mon Jun 13 15:31:22 2005 http://epydoc.sf.net