Java Doc for ReverbType.java in  » 6.0-JDK-Core » sound » javax » sound » sampled » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » sound » javax.sound.sampled 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.sound.sampled.ReverbType

ReverbType
public class ReverbType (Code)
The ReverbType class provides methods for accessing various reverberation settings to be applied to an audio signal.

Reverberation simulates the reflection of sound off of the walls, ceiling, and floor of a room. Depending on the size of the room, and how absorbent or reflective the materials in the room's surfaces are, the sound might bounce around for a long time before dying away.

The reverberation parameters provided by ReverbType consist of the delay time and intensity of early reflections, the delay time and intensity of late reflections, and an overall decay time. Early reflections are the initial individual low-order reflections of the direct signal off the surfaces in the room. The late Relections are the dense, high-order reflections that characterize the room's reverberation. The delay times for the start of these two reflection types give the listener a sense of the overall size and complexity of the room's shape and contents. The larger the room, the longer the reflection delay times. The early and late reflections' intensities define the gain (in decibels) of the reflected signals as compared to the direct signal. These intensities give the listener an impression of the absorptive nature of the surfaces and objects in the room. The decay time defines how long the reverberation takes to exponentially decay until it is no longer perceptible ("effective zero"). The larger and less absorbent the surfaces, the longer the decay time.

The set of parameters defined here may not include all aspects of reverberation as specified by some systems. For example, the Midi Manufacturer's Association (MMA) has an Interactive Audio Special Interest Group (IASIG), which has a 3-D Working Group that has defined a Level 2 Spec (I3DL2). I3DL2 supports filtering of reverberation and control of reverb density. These properties are not included in the JavaSound 1.0 definition of a reverb control. In such a case, the implementing system should either extend the defined reverb control to include additional parameters, or else interpret the system's additional capabilities in a way that fits the model described here.

If implementing JavaSound on a I3DL2-compliant device:

  • Filtering is disabled (high-frequency attenuations are set to 0.0 dB)
  • Density parameters are set to midway between minimum and maximum

The following table shows what parameter values an implementation might use for a representative set of reverberation settings.

Reverberation Types and Parameters

Type Decay Time (ms) Late Intensity (dB) Late Delay (ms) Early Intensity (dB) Early Delay(ms)
Cavern 2250 -2.0 41.3 -1.4 10.3
Dungeon 1600 -1.0 10.3 -0.7 2.6
Garage 900 -6.0 14.7 -4.0 3.9
Acoustic Lab 280 -3.0 8.0 -2.0 2.0
Closet 150 -10.0 2.5 -7.0 0.6

author:
   Kara Kytle
version:
   1.20, 07/05/05
since:
   1.3




Constructor Summary
protected  ReverbType(String name, int earlyReflectionDelay, float earlyReflectionIntensity, int lateReflectionDelay, float lateReflectionIntensity, int decayTime)
     Constructs a new reverb type that has the specified reverberation parameter values.

Method Summary
final public  booleanequals(Object obj)
     Indicates whether the specified object is equal to this reverb type, returning true if the objects are identical.
final public  intgetDecayTime()
     Obtains the decay time, which is the amount of time over which the late reflections attenuate to effective zero.
final public  intgetEarlyReflectionDelay()
     Returns the early reflection delay time in microseconds.
final public  floatgetEarlyReflectionIntensity()
     Returns the early reflection intensity in decibels.
final public  intgetLateReflectionDelay()
     Returns the late reflection delay time in microseconds.
final public  floatgetLateReflectionIntensity()
     Returns the late reflection intensity in decibels.
public  StringgetName()
     Obtains the name of this reverb type.
final public  inthashCode()
     Finalizes the hashcode method.
final public  StringtoString()
     Provides a String representation of the reverb type, including its name and its parameter settings.


Constructor Detail
ReverbType
protected ReverbType(String name, int earlyReflectionDelay, float earlyReflectionIntensity, int lateReflectionDelay, float lateReflectionIntensity, int decayTime)(Code)
Constructs a new reverb type that has the specified reverberation parameter values.
Parameters:
  name - the name of the new reverb type, or a zero-length String
Parameters:
  earlyReflectionDelay - the new type's early reflection delay time in microseconds
Parameters:
  earlyReflectionIntensity - the new type's early reflection intensity in dB
Parameters:
  lateReflectionDelay - the new type's late reflection delay time in microseconds
Parameters:
  lateReflectionIntensity - the new type's late reflection intensity in dB
Parameters:
  decayTime - the new type's decay time in microseconds




Method Detail
equals
final public boolean equals(Object obj)(Code)
Indicates whether the specified object is equal to this reverb type, returning true if the objects are identical.
Parameters:
  obj - the reference object with which to compare true if this reverb type is the same as obj; false otherwise



getDecayTime
final public int getDecayTime()(Code)
Obtains the decay time, which is the amount of time over which the late reflections attenuate to effective zero. The effective zero value is implementation-dependent. the decay time of the late reflections, in microseconds



getEarlyReflectionDelay
final public int getEarlyReflectionDelay()(Code)
Returns the early reflection delay time in microseconds. This is the amount of time between when the direct signal is heard and when the first early reflections are heard. early reflection delay time for this reverb type, in microseconds



getEarlyReflectionIntensity
final public float getEarlyReflectionIntensity()(Code)
Returns the early reflection intensity in decibels. This is the amplitude attenuation of the first early reflections relative to the direct signal. early reflection intensity for this reverb type, in dB



getLateReflectionDelay
final public int getLateReflectionDelay()(Code)
Returns the late reflection delay time in microseconds. This is the amount of time between when the first early reflections are heard and when the first late reflections are heard. late reflection delay time for this reverb type, in microseconds



getLateReflectionIntensity
final public float getLateReflectionIntensity()(Code)
Returns the late reflection intensity in decibels. This is the amplitude attenuation of the first late reflections relative to the direct signal. late reflection intensity for this reverb type, in dB



getName
public String getName()(Code)
Obtains the name of this reverb type. the name of this reverb type
since:
   1.5



hashCode
final public int hashCode()(Code)
Finalizes the hashcode method.



toString
final public String toString()(Code)
Provides a String representation of the reverb type, including its name and its parameter settings. The exact contents of the string may vary between implementations of Java Sound. reverberation type name and description



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.