|
JSR-234 1.1 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface MacroscopicControl
MacroscopicControl is an interface for manipulating
the macroscopic behavior of a sound source when using 3D audio.
By default, sound sources act as point sources (having zero size).
MacroscopicControl allows the dimensions (width, height and
depth) of a sound source to be specified so that it no longer behaves as
a point source.
This is useful for relatively big sound
sources like waterfalls.
This control, if it is supported, can be fetched
from a SoundSource3D.
The default values for the properties of all macroscopic controls (whether the application has obtained them or not) are:
x = 0
y = 0
z = 0
Control,
LocationControl| Method Summary | |
|---|---|
int[] |
getSize()
Gets the current size. |
void |
setSize(int x,
int y,
int z)
Sets the size of the audio source. |
| Methods inherited from interface javax.microedition.amms.control.audio3d.OrientationControl |
|---|
getOrientationVectors, setOrientation, setOrientation |
| Method Detail |
|---|
void setSize(int x,
int y,
int z)
LocationControl.
NOTE: The lengths are specified in the object's own
(rotated) axes, as defined via the OrientationControl by the last call to setOrientation(int
heading, int pitch, int roll) or setOrientation(int[]
frontVector, int[] aboveVector).
x - the "width" of the sound source in its transformed
X (or "right") dimension in millimetersy - the "height" of the sound source in its transformed
Y (or "up") dimension in millimetersz - the "thickness" or "depth" of the sound source in
its transformed Z (or "front") dimension in millimeters
java.lang.IllegalArgumentException - if a negative parameter is givengetSize()int[] getSize()
setSize(int, int, int)
|
JSR-234 1.1 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||