AudioCapture

Parent Previous Next

VisualSim.actor.lib.javasound
Class AudioCapture

The following parameters should be set accordingly. In all cases, an exception is thrown if an illegal parameter value is used. Note that these parameters may be changed while audio playback is active. If this actor is used in conjunction with an AudioPlayer actor, changing a parameter will cause the corresponding parameter value of the AudioPlayer to automatically be set to the same value. This behavior is required because the AudioCapture and AudioPlayer actors both share access to the audio hardware, which is associated with a single sample rate, bit resolution, and number of channels.

It should be noted that at most one AudioCapture and one AudioPlayer actor may be used simultaneously. Otherwise, an exception will occur. This restriction may be lifted in a future version of this actor.

There are security issues involved with accessing files and audio resources in applets. Applets are not allowed to capture audio from the audio input port (e.g., the microphone) by default since this could present a security risk. Therefore, the actor will not run in an applet by default. 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

sampleRate

public Parameter sampleRate

An exception will occur if this parameter is set to an unsupported sample rate.


bitsPerSample

public Parameter bitsPerSample

An exception will occur if this parameter is set to an unsupported bit resolution.


channels

public Parameter channels

An exception will occur if this parameter is set to an an unsupported channel number.



transferSize

public Parameter tranferSize





Created with the Personal Edition of HelpNDoc: Free Kindle producer