AudioWriter

Parent Previous Next

VisualSim.actor.lib.javasound
Class AudioWriter

The following parameters should be set to specify the format of the file to write. In all cases, an exception is thrown if an illegal parameter value is used. Note that if a parameter is changed while audio writing is active, all data written so far will be saved, and the sound file will be closed. Subsequent audio samples will then be written to a new sound file with the new parameter values.

There are security issues involved with accessing files and audio resources in applets. By default, applets are not allowed to write files. The .java.policy file may be modified to grant applets more privileges.

Note: Requires Java 2 v1.3.0 or later.

See Also:

Field Detail

pathName

public StringAttribute pathName

The audio format to use is determined by the file extension. E.g., "outfile.wav" will create a WAV format file. The supported file formats are AU, WAV, and, AIFF.

An exception will be occur if the path references an unsupported sound file.


sampleRate

public Parameter sampleRate

An exception will be thrown if an illegal value is used.


bitsPerSample

public Parameter bitsPerSample


channels

public Parameter channels



Created with the Personal Edition of HelpNDoc: Create iPhone web-based documentation