Java Doc for JOALSample.java in  » 6.0-JDK-Modules » java-3d » org » jdesktop » j3d » audioengines » joal » 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 » org.jdesktop.j3d.audioengines.joal 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.j3d.audioengines.Sample
      org.jdesktop.j3d.audioengines.joal.JOALSample

JOALSample
public class JOALSample extends Sample (Code)
This is the JOAL Sample object which encapsulates all the functionality and holds all the data associated with a Sample.
author:
   David Grace (dave@dutchie.net)


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  float[]directionArray
    
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  float[]positionArray
    
protected  floatrateScaleFactor
     Overall Scale Factor applied to sound.
protected  MediaContainersoundData
    
protected  intsoundType
    
protected  booleanvwXfrmFlag
    
protected  Transform3DvworldXfrm
    

Constructor Summary
public  JOALSample()
    

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  ALgetAl()
    
public  int[]getBuffer()
    
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  booleanload(AL al, MediaContainer soundData, int soundType)
     Load the sound ready to by played.
public  booleanload(AL al, int[] buffer, int soundType)
     Load the sound ready to by played reusing the shared buffer.
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)
    
public  intstartSample()
    
public  intstopSample()
    

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.



directionArray
protected float[] directionArray(Code)



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)



positionArray
protected float[] positionArray(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
JOALSample
public JOALSample()(Code)
Creates a new instance of JOALSample




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)



getAl
public AL getAl()(Code)



getBuffer
public int[] getBuffer()(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)



load
public boolean load(AL al, MediaContainer soundData, int soundType)(Code)
Load the sound ready to by played. error true if error occurred



load
public boolean load(AL al, int[] buffer, int soundType)(Code)
Load the sound ready to by played reusing the shared buffer. error true if error occurred



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)



startSample
public int startSample()(Code)



stopSample
public int stopSample()(Code)



Fields inherited from com.sun.j3d.audioengines.Sample
final public static int DURATION_UNKNOWN(Code)(Java Doc)
final public static int LOW_PASS(Code)(Java Doc)
final public static int NO_FILTERING(Code)(Java Doc)
final public static int NULL_SAMPLE(Code)(Java Doc)
protected double[] angularDistance(Code)(Java Doc)
protected float[] angularFilterCutoff(Code)(Java Doc)
protected int angularFilterType(Code)(Java Doc)
protected float[] angularGain(Code)(Java Doc)
protected double[] attenuationDistance(Code)(Java Doc)
protected float[] attenuationGain(Code)(Java Doc)
protected double[] backAttenuationDistance(Code)(Java Doc)
protected float[] backAttenuationGain(Code)(Java Doc)
final protected static boolean debugFlag(Code)(Java Doc)
protected Vector3f direction(Code)(Java Doc)
protected int dirtyFlags(Code)(Java Doc)
protected long duration(Code)(Java Doc)
protected float gain(Code)(Java Doc)
final protected static boolean internalErrors(Code)(Java Doc)
protected int loopCount(Code)(Java Doc)
protected boolean mute(Code)(Java Doc)
protected int numberOfChannels(Code)(Java Doc)
protected float obstructionFilterCutoff(Code)(Java Doc)
protected int obstructionFilterType(Code)(Java Doc)
protected float obstructionGain(Code)(Java Doc)
protected float occlusionFilterCutoff(Code)(Java Doc)
protected int occlusionFilterType(Code)(Java Doc)
protected float occlusionGain(Code)(Java Doc)
protected Point3f position(Code)(Java Doc)
protected float rateScaleFactor(Code)(Java Doc)
protected MediaContainer soundData(Code)(Java Doc)
protected int soundType(Code)(Java Doc)
protected boolean vwXfrmFlag(Code)(Java Doc)
protected Transform3D vworldXfrm(Code)(Java Doc)

Methods inherited from com.sun.j3d.audioengines.Sample
public void clear()(Code)(Java Doc)
protected void debugPrint(String message)(Code)(Java Doc)
protected void debugPrintln(String message)(Code)(Java Doc)
public int getDirtyFlags()(Code)(Java Doc)
public long getDuration()(Code)(Java Doc)
public float getGain()(Code)(Java Doc)
public int getLoopCount()(Code)(Java Doc)
public boolean getMuteFlag()(Code)(Java Doc)
public int getNumberOfChannelsUsed()(Code)(Java Doc)
public float getObstructionGain()(Code)(Java Doc)
public float getOcclusionGain()(Code)(Java Doc)
public float getRateScaleFactor()(Code)(Java Doc)
public MediaContainer getSoundData()(Code)(Java Doc)
public int getSoundType()(Code)(Java Doc)
public long getStartTime()(Code)(Java Doc)
public boolean getVWrldXfrmFlag()(Code)(Java Doc)
public void render(int dirtyFlags, View view, AuralParameters attribs)(Code)(Java Doc)
public void setAngularAttenuation(int filterType, double[] angle, float[] attenuationScaleFactor, float[] filterCutoff)(Code)(Java Doc)
public void setDirection(Vector3d direction)(Code)(Java Doc)
public void setDirtyFlags(int flags)(Code)(Java Doc)
public void setDistanceGain(double[] frontDistance, float[] frontAttenuationScaleFactor, double[] backDistance, float[] backAttenuationScaleFactor)(Code)(Java Doc)
public void setGain(float scaleFactor)(Code)(Java Doc)
public void setLoopCount(int count)(Code)(Java Doc)
public void setMuteFlag(boolean flag)(Code)(Java Doc)
public void setObstructionFilter(float cutoffFrequency)(Code)(Java Doc)
public void setObstructionGain(float scaleFactor)(Code)(Java Doc)
public void setOcclusionFilter(float cutoffFrequency)(Code)(Java Doc)
public void setOcclusionGain(float scaleFactor)(Code)(Java Doc)
public void setPosition(Point3d position)(Code)(Java Doc)
public void setRateScaleFactor(float scaleFactor)(Code)(Java Doc)
public void setSoundData(MediaContainer ref)(Code)(Java Doc)
public void setSoundType(int type)(Code)(Java Doc)
public void setVWrldXfrmFlag(boolean flag)(Code)(Java Doc)

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.