Sound (Sound class)

Sound is a media shape that plays audio from a file that is stored on the computer running the presentation. Like a movie, the sound data is not stored in the presentation. The sound shape simply references a sound file in the file system.

With a sound object, it is important to keep the accompanying file with the presentation in order for the correct data to be accessed and played.

Creating a new Sound

You create a new Sound object in the Presentation class, specifying the referenced sound file:

Clipboard createSound(java.lang.String file) [Presentation]

Working with an existing Sound

To determine the file used by an existing sound use:

java.lang.String getFile()

To set a new reference file use:

void setFile(java.lang.String file)

Page generated: 2008-01-18 02:53:28 GMT TonicPoint Builder Developer's Guide -- Version 2.3