Java Doc for Sample.java in  » 6.0-JDK-Modules » java-3d » com » sun » j3d » audioengines » Java Source Code / Java DocumentationJava Source Code and Java Documentation

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 geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » java 3d » com.sun.j3d.audioengines 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.j3d.audioengines.Sample

All known Subclasses:   com.sun.j3d.audioengines.javasound.JSSample,  org.jdesktop.j3d.audioengines.joal.JOALSample,
Sample
public class Sample (Code)
The Sample class defines the data and methods associated with a sound sample played through the AudioDevice. This contains all the data fields for non-spatialized and spatialized (positional and directional) sound samples.


Field Summary
final public static  intDURATION_UNKNOWN
    
final public static  intLOW_PASS
    
final public static  intNO_FILTERING
     Distance Filter Each sound source is attenuated by a filter based on it's distance from the listener.
final public static  intNULL_SAMPLE
    
protected  double[]angularDistance
     Directional Sound's gain can be attenuated based on the listener's location off-angle from the source source direction.
protected  float[]angularFilterCutoff
    
protected  intangularFilterType
    
protected  float[]angularGain
    
protected  double[]attenuationDistance
    
protected  float[]attenuationGain
    
protected  double[]backAttenuationDistance
     Pairs of distances and gain scale factors that define piecewise linear gain BACK attenuation between each pair.
protected  float[]backAttenuationGain
    
final protected static  booleandebugFlag
    
protected  Vector3fdirection
     The Cone Sound's direction vector.
protected  intdirtyFlags
    
protected  longduration
    
protected  floatgain
     Overall Scale Factor applied to sound gain.
final protected static  booleaninternalErrors
    
protected  intloopCount
    
protected  booleanmute
    
protected  intnumberOfChannels
    
protected  floatobstructionFilterCutoff
    
protected  intobstructionFilterType
    
protected  floatobstructionGain
    
protected  floatocclusionFilterCutoff
    
protected  intocclusionFilterType
    
protected  floatocclusionGain
    
protected  Point3fposition
    
protected  floatrateScaleFactor
     Overall Scale Factor applied to sound.
protected  MediaContainersoundData
    
protected  intsoundType
    
protected  booleanvwXfrmFlag
    
protected  Transform3DvworldXfrm
    

Constructor Summary
public  Sample()
    

Method Summary
public  voidclear()
     Clears/re-initialize fields associated with sample data for this sound, and frees any device specific data associated with this sample.
protected  voiddebugPrint(String message)
    
protected  voiddebugPrintln(String message)
    
public  intgetDirtyFlags()
    
public  longgetDuration()
    
public  floatgetGain()
    
public  intgetLoopCount()
    
public  booleangetMuteFlag()
    
public  intgetNumberOfChannelsUsed()
    
public  floatgetObstructionGain()
    
public  floatgetOcclusionGain()
    
public  floatgetRateScaleFactor()
    
public  MediaContainergetSoundData()
    
public  intgetSoundType()
    
public  longgetStartTime()
    
public  booleangetVWrldXfrmFlag()
    
public  voidrender(int dirtyFlags, View view, AuralParameters attribs)
    
public  voidsetAngularAttenuation(int filterType, double[] angle, float[] attenuationScaleFactor, float[] filterCutoff)
    
public  voidsetDirection(Vector3d direction)
    
public  voidsetDirtyFlags(int flags)
    
public  voidsetDistanceGain(double[] frontDistance, float[] frontAttenuationScaleFactor, double[] backDistance, float[] backAttenuationScaleFactor)
    
public  voidsetGain(float scaleFactor)
    
public  voidsetLoopCount(int count)
    
public  voidsetMuteFlag(boolean flag)
    
public  voidsetObstructionFilter(float cutoffFrequency)
    
public  voidsetObstructionGain(float scaleFactor)
    
public  voidsetOcclusionFilter(float cutoffFrequency)
    
public  voidsetOcclusionGain(float scaleFactor)
    
public  voidsetPosition(Point3d position)
    
public  voidsetRateScaleFactor(float scaleFactor)
    
public  voidsetSoundData(MediaContainer ref)
    
public  voidsetSoundType(int type)
    
public  voidsetVWrldXfrmFlag(boolean flag)
    

Field Detail
DURATION_UNKNOWN
final public static int DURATION_UNKNOWN(Code)



LOW_PASS
final public static int LOW_PASS(Code)



NO_FILTERING
final public static int NO_FILTERING(Code)
Distance Filter Each sound source is attenuated by a filter based on it's distance from the listener. For now the only supported filterType will be LOW_PASS frequency cutoff. At some time full FIR filtering will be supported.



NULL_SAMPLE
final public static int NULL_SAMPLE(Code)
Null Sound identifier denotes sound is not created or initialized



angularDistance
protected double[] angularDistance(Code)
Directional Sound's gain can be attenuated based on the listener's location off-angle from the source source direction. This can be set by three parameters: angular distance in radians gain scale factor filtering (currently the only filtering supported is lowpass)



angularFilterCutoff
protected float[] angularFilterCutoff(Code)



angularFilterType
protected int angularFilterType(Code)



angularGain
protected float[] angularGain(Code)



attenuationDistance
protected double[] attenuationDistance(Code)



attenuationGain
protected float[] attenuationGain(Code)



backAttenuationDistance
protected double[] backAttenuationDistance(Code)
Pairs of distances and gain scale factors that define piecewise linear gain BACK attenuation between each pair. These are used for defining elliptical attenuation regions.



backAttenuationGain
protected float[] backAttenuationGain(Code)



debugFlag
final protected static boolean debugFlag(Code)



direction
protected Vector3f direction(Code)
The Cone Sound's direction vector. This is the cone axis.



dirtyFlags
protected int dirtyFlags(Code)
dirty flags denoting what has changed since last rendering



duration
protected long duration(Code)



gain
protected float gain(Code)
Overall Scale Factor applied to sound gain.



internalErrors
final protected static boolean internalErrors(Code)



loopCount
protected int loopCount(Code)
Number of times sound is looped/repeated during play



mute
protected boolean mute(Code)



numberOfChannels
protected int numberOfChannels(Code)



obstructionFilterCutoff
protected float obstructionFilterCutoff(Code)



obstructionFilterType
protected int obstructionFilterType(Code)



obstructionGain
protected float obstructionGain(Code)



occlusionFilterCutoff
protected float occlusionFilterCutoff(Code)



occlusionFilterType
protected int occlusionFilterType(Code)



occlusionGain
protected float occlusionGain(Code)



position
protected Point3f position(Code)



rateScaleFactor
protected float rateScaleFactor(Code)
Overall Scale Factor applied to sound.
since:
   Java 3D 1.3



soundData
protected MediaContainer soundData(Code)
sound data associated with sound source



soundType
protected int soundType(Code)
sound data associated with sound source



vwXfrmFlag
protected boolean vwXfrmFlag(Code)



vworldXfrm
protected Transform3D vworldXfrm(Code)




Constructor Detail
Sample
public Sample()(Code)




Method Detail
clear
public void clear()(Code)
Clears/re-initialize fields associated with sample data for this sound, and frees any device specific data associated with this sample.



debugPrint
protected void debugPrint(String message)(Code)



debugPrintln
protected void debugPrintln(String message)(Code)



getDirtyFlags
public int getDirtyFlags()(Code)



getDuration
public long getDuration()(Code)



getGain
public float getGain()(Code)



getLoopCount
public int getLoopCount()(Code)



getMuteFlag
public boolean getMuteFlag()(Code)



getNumberOfChannelsUsed
public int getNumberOfChannelsUsed()(Code)



getObstructionGain
public float getObstructionGain()(Code)



getOcclusionGain
public float getOcclusionGain()(Code)



getRateScaleFactor
public float getRateScaleFactor()(Code)



getSoundData
public MediaContainer getSoundData()(Code)



getSoundType
public int getSoundType()(Code)



getStartTime
public long getStartTime()(Code)



getVWrldXfrmFlag
public boolean getVWrldXfrmFlag()(Code)



render
public void render(int dirtyFlags, View view, AuralParameters attribs)(Code)



setAngularAttenuation
public void setAngularAttenuation(int filterType, double[] angle, float[] attenuationScaleFactor, float[] filterCutoff)(Code)



setDirection
public void setDirection(Vector3d direction)(Code)



setDirtyFlags
public void setDirtyFlags(int flags)(Code)



setDistanceGain
public void setDistanceGain(double[] frontDistance, float[] frontAttenuationScaleFactor, double[] backDistance, float[] backAttenuationScaleFactor)(Code)



setGain
public void setGain(float scaleFactor)(Code)



setLoopCount
public void setLoopCount(int count)(Code)



setMuteFlag
public void setMuteFlag(boolean flag)(Code)



setObstructionFilter
public void setObstructionFilter(float cutoffFrequency)(Code)



setObstructionGain
public void setObstructionGain(float scaleFactor)(Code)



setOcclusionFilter
public void setOcclusionFilter(float cutoffFrequency)(Code)



setOcclusionGain
public void setOcclusionGain(float scaleFactor)(Code)



setPosition
public void setPosition(Point3d position)(Code)



setRateScaleFactor
public void setRateScaleFactor(float scaleFactor)(Code)



setSoundData
public void setSoundData(MediaContainer ref)(Code)



setSoundType
public void setSoundType(int type)(Code)



setVWrldXfrmFlag
public void setVWrldXfrmFlag(boolean flag)(Code)



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.