|
JSR-234 1.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PanControl
PanControl
is an interface for manipulating
the panning of a Player
in the stereo output mix. If the input is stereo, this controls the balance between the channels.
This interface allows, in the case of a mono source, the panning between the left and the right channel to be specified using an integer value that varies between -100 and 100.
The pan scale specifies panning on a linear scale. It ranges from -100 to 100, where 0 represents panning for both channels, -100 full panning to the left, and 100 full panning to the right. The mapping for producing linear multiplicative values is implementation dependent.
This interface allows, in the case of a stereo source, the balancing between the left and the right channel to be specified using an integer value that varies between -100 and 100.
The balance scale specifies balancing on a linear scale. It ranges from -100 to 100, where 0 represents equal gain for both channels, -100 full gain to the left and zero gain to the right, and 100 full gain to the right and zero gain to the left. The mapping for producing linear multiplicative values is implementation dependent.
With multichannel (>2) sources, the effect of the panning set is undefined.
The default value of all pan controls (whether the application has obtained them or not) is:
pan = 0
(center)
Note that panning setting is not in effect for
Player
s added to a SoundSource3D
.
Control
,
Player
Method Summary | |
---|---|
int |
getPan()
Gets the current panning set. |
int |
setPan(int pan)
Sets the panning using a linear point scale with values between -100 and 100. |
Method Detail |
---|
int setPan(int pan)
pan
- the new panning to be set
getPan()
int getPan()
setPan(int)
|
JSR-234 1.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |