Java Doc for JavaSoundMixer.java in  » 6.0-JDK-Modules » java-3d » com » sun » j3d » audioengines » javasound » 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.javasound 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.j3d.audioengines.AudioEngine
      com.sun.j3d.audioengines.AudioEngine3D
         com.sun.j3d.audioengines.AudioEngine3DL2
            com.sun.j3d.audioengines.javasound.JavaSoundMixer

JavaSoundMixer
public class JavaSoundMixer extends AudioEngine3DL2 (Code)
The JavaSoundMixer Class defines an audio output device that accesses JavaSound functionality stream data.


Field Summary
final static  intADD_TO_LIST
    
final protected static  intNOT_PAUSED
    
final protected static  intPAUSED
    
final protected static  intPAUSE_PENDING
    
final protected static  intRESUME_PENDING
    
final static  intSET_INTO_LIST
    
 JSAuralParametersauralParams
    
final static  booleandebugFlag
    
protected  floatdeviceGain
    
final static  booleaninternalErrors
    
protected  intpause
    
 JSThreadthread
    

Constructor Summary
public  JavaSoundMixer(PhysicalEnvironment physicalEnvironment)
    

Method Summary
 voidcalcReverb(JSSample sample)
    
public  voidclearSound(int index)
     Clears the fields associated with sample data for this sound.
public  booleanclose()
     Code to close the device.
 voiddebugPrint(String message)
    
 voiddebugPrintln(String message)
    
public  intgetNumberOfChannelsUsed(int index)
    
public  intgetNumberOfChannelsUsed(int index, boolean muted)
     Overriden method from AudioEngine3D.
public  longgetSampleDuration(int index)
    
public  longgetStartTime(int index)
    
public  intgetTotalChannels()
     Query total number of channels available for sound rendering for this audio device.
public  booleaninitialize()
    
public  voidmuteSample(int index)
    
public  voidpause()
     Pauses audio device engine without closing the device and associated threads.
public  voidpauseSample(int index)
    
public  intprepareSound(int soundType, MediaContainer soundData)
     Code to load sound data into a channel of device mixer.
public  voidresume()
     Resumes audio device engine (if previously paused) without reinitializing * the device.
 voidscaleSampleRate(int index, float scaleFactor)
    
public  voidsetDirection(int index, Vector3d direction)
    
 voidsetFilter(int index, boolean filterFlag, float filterFreq)
    
public  voidsetGain(float scaleFactor)
    
public  voidsetLoop(int index, int count)
    
public  voidsetPosition(int index, Point3d position)
    
public  voidsetRateScaleFactor(int index, float rateScaleFactor)
    
public  voidsetReflectionCoefficient(float coefficient)
    
 voidsetReverb(JSSample sample)
    
public  voidsetReverbDelay(float reverbDelay)
    
public  voidsetReverbOrder(int reverbOrder)
    
public  voidsetVworldXfrm(int index, Transform3D trans)
     Save a reference to the local to virtual world coordinate space Overriden method from AudioEngine3D.
public  intstartSample(int index)
    
public  intstopSample(int index)
    
public  voidunmuteSample(int index)
    
public  voidunpauseSample(int index)
    
public  voidupdateSample(int index)
    

Field Detail
ADD_TO_LIST
final static int ADD_TO_LIST(Code)



NOT_PAUSED
final protected static int NOT_PAUSED(Code)



PAUSED
final protected static int PAUSED(Code)



PAUSE_PENDING
final protected static int PAUSE_PENDING(Code)



RESUME_PENDING
final protected static int RESUME_PENDING(Code)



SET_INTO_LIST
final static int SET_INTO_LIST(Code)



auralParams
JSAuralParameters auralParams(Code)



debugFlag
final static boolean debugFlag(Code)



deviceGain
protected float deviceGain(Code)



internalErrors
final static boolean internalErrors(Code)



pause
protected int pause(Code)



thread
JSThread thread(Code)




Constructor Detail
JavaSoundMixer
public JavaSoundMixer(PhysicalEnvironment physicalEnvironment)(Code)




Method Detail
calcReverb
void calcReverb(JSSample sample)(Code)



clearSound
public void clearSound(int index)(Code)
Clears the fields associated with sample data for this sound. Overriden method from AudioEngine3D.



close
public boolean close()(Code)
Code to close the device. New interface to mixer/engine specific methods flag: true is closed sucessfully, false if error



debugPrint
void debugPrint(String message)(Code)



debugPrintln
void debugPrintln(String message)(Code)



getNumberOfChannelsUsed
public int getNumberOfChannelsUsed(int index)(Code)



getNumberOfChannelsUsed
public int getNumberOfChannelsUsed(int index, boolean muted)(Code)
Overriden method from AudioEngine3D.



getSampleDuration
public long getSampleDuration(int index)(Code)



getStartTime
public long getStartTime(int index)(Code)



getTotalChannels
public int getTotalChannels()(Code)
Query total number of channels available for sound rendering for this audio device. Overridden method from AudioEngine. number of maximum voices play simultaneously on JavaSound Mixer.



initialize
public boolean initialize()(Code)
Code to initialize the device New interface to mixer/engine specific methods flag: true is initialized sucessfully, false if error



muteSample
public void muteSample(int index)(Code)



pause
public void pause()(Code)
Pauses audio device engine without closing the device and associated threads. Causes all cached sounds to be paused and all streaming sounds to be stopped.



pauseSample
public void pauseSample(int index)(Code)



prepareSound
public int prepareSound(int soundType, MediaContainer soundData)(Code)
Code to load sound data into a channel of device mixer. Load sound as one or mores sample into the Java Sound Mixer: a) as either a STREAM or CLIP based on whether cached is enabled b) positional and directional sounds use three samples per sound Overriden method from AudioEngine3D. Sound type determines if this is a Background, Point or Cone sound source and thus the JSXxxxSample object type Call JSXxxxxSample.loadSample() If no error Get the next free index in the samples list. Store a reference to JSXxxxSample object in samples list. index to the sample in samples list.



resume
public void resume()(Code)
Resumes audio device engine (if previously paused) without reinitializing * the device. Causes all paused cached sounds to be resumed and all streaming sounds restarted.



scaleSampleRate
void scaleSampleRate(int index, float scaleFactor)(Code)



setDirection
public void setDirection(int index, Vector3d direction)(Code)



setFilter
void setFilter(int index, boolean filterFlag, float filterFreq)(Code)



setGain
public void setGain(float scaleFactor)(Code)



setLoop
public void setLoop(int index, int count)(Code)



setPosition
public void setPosition(int index, Point3d position)(Code)



setRateScaleFactor
public void setRateScaleFactor(int index, float rateScaleFactor)(Code)



setReflectionCoefficient
public void setReflectionCoefficient(float coefficient)(Code)



setReverb
void setReverb(JSSample sample)(Code)



setReverbDelay
public void setReverbDelay(float reverbDelay)(Code)



setReverbOrder
public void setReverbOrder(int reverbOrder)(Code)



setVworldXfrm
public void setVworldXfrm(int index, Transform3D trans)(Code)
Save a reference to the local to virtual world coordinate space Overriden method from AudioEngine3D.



startSample
public int startSample(int index)(Code)



stopSample
public int stopSample(int index)(Code)



unmuteSample
public void unmuteSample(int index)(Code)



unpauseSample
public void unpauseSample(int index)(Code)



updateSample
public void updateSample(int index)(Code)



Methods inherited from com.sun.j3d.audioengines.AudioEngine3DL2
abstract public void pause()(Code)(Java Doc)
abstract public void resume()(Code)(Java Doc)
public void setDecayFilter(float frequencyCutoff)(Code)(Java Doc)
public void setDecayTime(float time)(Code)(Java Doc)
public void setDensity(float density)(Code)(Java Doc)
public void setDiffusion(float diffusion)(Code)(Java Doc)
abstract public void setGain(float scaleFactor)(Code)(Java Doc)
public void setObstructionFilter(int index, float frequencyCutoff)(Code)(Java Doc)
public void setObstructionGain(int index, float scaleFactor)(Code)(Java Doc)
public void setOcclusionFilter(int index, float frequencyCutoff)(Code)(Java Doc)
public void setOcclusionGain(int index, float scaleFactor)(Code)(Java Doc)
public void setRateScaleFactor(int index, float scaleFactor)(Code)(Java Doc)
public void setReflectionDelay(float reflectionDelay)(Code)(Java Doc)
public void setReverbCoefficient(float coefficient)(Code)(Java Doc)

Fields inherited from com.sun.j3d.audioengines.AudioEngine3D
protected AuralParameters attribs(Code)(Java Doc)
protected View currentView(Code)(Java Doc)
protected ArrayList samples(Code)(Java Doc)

Methods inherited from com.sun.j3d.audioengines.AudioEngine3D
abstract public void clearSound(int index)(Code)(Java Doc)
public AuralParameters getAuralParameters()(Code)(Java Doc)
public int getNumberOfChannelsUsed(int index)(Code)(Java Doc)
public int getNumberOfChannelsUsed(int index, boolean muteFlag)(Code)(Java Doc)
public Sample getSample(int index)(Code)(Java Doc)
public long getSampleDuration(int index)(Code)(Java Doc)
protected ArrayList getSampleList()(Code)(Java Doc)
public int getSampleListSize()(Code)(Java Doc)
public long getStartTime(int index)(Code)(Java Doc)
public View getView()(Code)(Java Doc)
abstract public void muteSample(int index)(Code)(Java Doc)
abstract public void pauseSample(int index)(Code)(Java Doc)
public int prepareSound(int soundType, MediaContainer soundData)(Code)(Java Doc)
public void setAngularAttenuation(int index, int filterType, double[] angle, float[] attenuationScaleFactor, float[] filterCutoff)(Code)(Java Doc)
public void setDirection(int index, Vector3d direction)(Code)(Java Doc)
public void setDistanceFilter(int filterType, double[] dist, float[] filterCutoff)(Code)(Java Doc)
public void setDistanceGain(int index, double[] frontDistance, float[] frontAttenuationScaleFactor, double[] backDistance, float[] backAttenuationScaleFactor)(Code)(Java Doc)
public void setFrequencyScaleFactor(float scaleFactor)(Code)(Java Doc)
public void setLoop(int index, int count)(Code)(Java Doc)
public void setPosition(int index, Point3d position)(Code)(Java Doc)
public void setReflectionCoefficient(float coefficient)(Code)(Java Doc)
public void setReverbDelay(float reverbDelay)(Code)(Java Doc)
public void setReverbOrder(int reverbOrder)(Code)(Java Doc)
public void setRolloff(float rolloff)(Code)(Java Doc)
public void setSampleGain(int index, float scaleFactor)(Code)(Java Doc)
public void setVelocityScaleFactor(float scaleFactor)(Code)(Java Doc)
public void setView(View reference)(Code)(Java Doc)
public void setVworldXfrm(int index, Transform3D trans)(Code)(Java Doc)
abstract public int startSample(int index)(Code)(Java Doc)
abstract public int stopSample(int index)(Code)(Java Doc)
abstract public void unmuteSample(int index)(Code)(Java Doc)
abstract public void unpauseSample(int index)(Code)(Java Doc)
abstract public void updateSample(int index)(Code)(Java Doc)

Methods inherited from com.sun.j3d.audioengines.AudioEngine
abstract public boolean close()(Code)(Java Doc)
public float getAngleOffsetToSpeaker()(Code)(Java Doc)
public int getAudioPlaybackType()(Code)(Java Doc)
public float getCenterEarToSpeaker()(Code)(Java Doc)
public int getChannelsAvailable()(Code)(Java Doc)
public int getChannelsUsedForSound(Sound sound)(Code)(Java Doc)
public int getTotalChannels()(Code)(Java Doc)
abstract public boolean initialize()(Code)(Java Doc)
public void setAngleOffsetToSpeaker(float angle)(Code)(Java Doc)
public void setAudioPlaybackType(int type)(Code)(Java Doc)
public void setCenterEarToSpeaker(float distance)(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.