javax.microedition.amms.control.audio3d
Interface ObstructionControl

All Superinterfaces:
Control

public interface ObstructionControl
extends Control

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.

Source Obstruction

Typically, an ObstructionControl can be obtained from a SoundSource3D. This control specifies how much of the direct sound from a sound source can be heard. It can also be used to muffle the high frequency components of a sound, as though there was a physical object obstructing the sound waves as they travel from the sound source to the user.

Default Values

The default values for the properties of all obstruction controls (whether the application has obtained them or not) are: level = 0 mBHFLevel = 0 mB

Example values

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

Since:
BlackBerry API 5.0.0

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

setLevel

void setLevel(int level)
Sets the overall level that will be transmitted directly from the source.

Parameters:
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.
Throws:
IllegalArgumentException - if the given level is positive
Since:
BlackBerry API 5.0.0

getLevel

int getLevel()
Returns:

the overall level being transmitted in millibels

Since:
BlackBerry API 5.0.0

setHFLevel

void setHFLevel(int HFLevel)
Sets the level at which high frequency components will be transmitted directly from the source.

Parameters:
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.
Throws:
IllegalArgumentException - if the given level is positive
Since:
BlackBerry API 5.0.0

getHFLevel

int getHFLevel()
Returns:

the level at which 5000 Hz frequency components are being transmitted in millibels

Since:
BlackBerry API 5.0.0





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