|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ObstructionControl
ObstructionControl
provides a mechanism to control the overall level of an audio
signal flowing directly from a sound source to the Spectator
.
Additionally, it provides the capability of filtering
(attenuating) the high frequency components of the signal to a specified degree.
The default values for the properties of all obstruction controls
(whether the application has obtained them or
not) are:
level = 0 mBHFLevel = 0 mB
The following values, for example, could be used to simulate an object made of the listed material obstructing (only) the direct path between the SoundSource3D and the Spectator:
level (mB)HFLevel (mB)single window -1988 -812double window -2000 -3000thin door -1188 -612thick door -2816 -1584wood wall -2000 -2000brick wall -3000 -2000stone wall -4080 -1920curtain -180 -1020
Method Summary | ||
---|---|---|
int |
getHFLevel()
|
|
int |
getLevel()
|
|
void |
setHFLevel(int HFLevel)
Sets the level at which high frequency components will be transmitted directly from the source. |
|
void |
setLevel(int level)
Sets the overall level that will be transmitted directly from the source. |
Method Detail |
---|
void setLevel(int level)
level
- the new output level in millibels (mB, 1 mB = 1/100 dB) at which the sound directly
from a source will be heard compared to a non-obstructed source; must be a non-positive value.
Setting the level to 0 makes the source non-obstructed.
IllegalArgumentException
- if the given level is positiveint getLevel()
the overall level being transmitted in millibels
void setHFLevel(int HFLevel)
HFLevel
- the new output level at 5000 Hz in millibels (mB, 1 mB = 1/100 dB)
at which the sound directly
from a source will be heard compared to the overall level of the source;
must be a non-positive value.
Setting the level to 0 makes the source's frequency response flat.
IllegalArgumentException
- if the given level is positiveint getHFLevel()
the level at which 5000 Hz frequency components are being transmitted in millibels
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal