|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.Component
java.awt.Canvas
fi.hut.tml.xsmiles.mlfc.aaml.nai.NativeAudioDirectX
| Nested Class Summary |
| Nested classes inherited from class java.awt.Canvas |
java.awt.Canvas.AccessibleAWTCanvas |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
NativeAudioDirectX()
|
|
| Method Summary | |
float |
getAirAbsorption(int dso)
|
float |
getDecayHFRatio(int dso)
|
float |
getDecayTime(int dso)
|
int |
getEnvironment(int dso)
|
float |
getEnvironmentDiffusion(int dso)
|
float |
getEnvironmentSize(int dso)
|
java.lang.String |
getErrorMsg(int dso)
Get Last Error Message. |
int |
getFlags(int dso)
|
long |
getReflections(int dso)
|
float |
getReflectionsDelay(int dso)
|
long |
getReverb(int dso)
|
float |
getReverbDelay(int dso)
|
long |
getRoom(int dso)
Get EAX values |
long |
getRoomHF(int dso)
|
float |
getRoomRolloff(int dso)
|
int |
init()
Initialize audio lib. |
boolean |
isEAXAvailable(int dso)
Check if EAX 2.0 is available. |
boolean |
isLibraryValid()
|
boolean |
play(int dso,
int id)
Play audio. |
int |
prefetch(int dso,
java.lang.String url)
Prefetch audio, create buffers etc. |
boolean |
setAirAbsorption(int dso,
float fValue)
|
boolean |
setClipDecayHF(int dso,
boolean bValue)
|
boolean |
setDecayHFRatio(int dso,
float fValue)
|
boolean |
setDecayTime(int dso,
float fValue)
|
boolean |
setEnvironment(int dso,
int dwValue)
|
boolean |
setEnvironmentDiffusion(int dso,
float fValue)
|
boolean |
setEnvironmentParams(int dso,
long lRoom,
long lRoomHF,
float flRoomRolloffFactor,
float flDecayTime,
float flDecayHFRatio,
long lReflections,
float flReflectionsDelay,
long lReverb,
float flReverbDelay,
long dwEnvironment,
float flEnvironmentSize,
float flEnvironmentDiffusion,
float flAirAbsorptionHF,
long dwFlags)
Set environment parameters. |
boolean |
setEnvironmentSize(int dso,
float fValue)
|
boolean |
setFlags(int dso,
int dwValue)
|
boolean |
setListenerParams(int dso,
float x,
float y,
float z,
float vx,
float vy,
float vz,
float ofx,
float ofy,
float ofz,
float otx,
float oty,
float otz,
float distancefactor,
float dopplerfactor,
float rollofffactor)
Set listener parameters. |
boolean |
setParams(int dso,
int id,
float x,
float y,
float z,
float vx,
float vy,
float vz,
float coneox,
float coneoy,
float coneoz,
int coneOutVol,
int insideConeAngle,
float maxDist,
float minDist,
int mode,
int outsideConeAngle,
float freq,
float vol,
float pan,
boolean loop)
Set sound parameters. |
boolean |
setPosition(int dso,
int id,
float x,
float y,
float z)
Set sound position. |
boolean |
setReflections(int dso,
long lValue)
|
boolean |
setReflectionsDelay(int dso,
float fValue)
|
boolean |
setReverb(int dso,
long lValue)
|
boolean |
setReverbDelay(int dso,
float fValue)
|
boolean |
setRoom(int dso,
long lValue)
|
boolean |
setRoomHF(int dso,
long lValue)
|
boolean |
setRoomRolloff(int dso,
float fValue)
|
boolean |
setScaleDecayTime(int dso,
boolean bValue)
|
boolean |
setScaleReflections(int dso,
boolean bValue)
|
boolean |
setScaleReflectionsDelay(int dso,
boolean bValue)
|
boolean |
setScaleReverb(int dso,
boolean bValue)
|
boolean |
setScaleReverbDelay(int dso,
boolean bValue)
|
boolean |
stop(int dso,
int id)
Stop audio. |
void |
terminate(int dso)
Terminate audio lib. |
| Methods inherited from class java.awt.Canvas |
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, paint, update |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public NativeAudioDirectX()
| Method Detail |
public boolean isLibraryValid()
public int init()
public int prefetch(int dso,
java.lang.String url)
dso - DirectSoundObject id, returned by init()url - URL to be prefetched (currently, filename in local dir)
public boolean play(int dso,
int id)
dso - DirectSoundObject id, returned by init()id - audio id, returned by prefetch().
public boolean stop(int dso,
int id)
dso - DirectSoundObject id, returned by init()id - audio id, returned by prefetch().
public boolean setPosition(int dso,
int id,
float x,
float y,
float z)
dso - DirectSoundObject id, returned by init()id - audio id, returned by prefetch().
public boolean setParams(int dso,
int id,
float x,
float y,
float z,
float vx,
float vy,
float vz,
float coneox,
float coneoy,
float coneoz,
int coneOutVol,
int insideConeAngle,
float maxDist,
float minDist,
int mode,
int outsideConeAngle,
float freq,
float vol,
float pan,
boolean loop)
dso - DirectSoundObject id, returned by init()id - audio id, returned by prefetch().
public boolean setListenerParams(int dso,
float x,
float y,
float z,
float vx,
float vy,
float vz,
float ofx,
float ofy,
float ofz,
float otx,
float oty,
float otz,
float distancefactor,
float dopplerfactor,
float rollofffactor)
dso - DirectSoundObject id, returned by init()public java.lang.String getErrorMsg(int dso)
public void terminate(int dso)
public boolean isEAXAvailable(int dso)
public boolean setEnvironmentParams(int dso,
long lRoom,
long lRoomHF,
float flRoomRolloffFactor,
float flDecayTime,
float flDecayHFRatio,
long lReflections,
float flReflectionsDelay,
long lReverb,
float flReverbDelay,
long dwEnvironment,
float flEnvironmentSize,
float flEnvironmentDiffusion,
float flAirAbsorptionHF,
long dwFlags)
dso - DirectSoundObject id, returned by init()public long getRoom(int dso)
public long getRoomHF(int dso)
public float getRoomRolloff(int dso)
public float getDecayTime(int dso)
public float getDecayHFRatio(int dso)
public long getReflections(int dso)
public float getReflectionsDelay(int dso)
public long getReverb(int dso)
public float getReverbDelay(int dso)
public int getEnvironment(int dso)
public float getEnvironmentSize(int dso)
public float getEnvironmentDiffusion(int dso)
public float getAirAbsorption(int dso)
public int getFlags(int dso)
public boolean setRoom(int dso,
long lValue)
public boolean setRoomHF(int dso,
long lValue)
public boolean setRoomRolloff(int dso,
float fValue)
public boolean setDecayTime(int dso,
float fValue)
public boolean setDecayHFRatio(int dso,
float fValue)
public boolean setReflections(int dso,
long lValue)
public boolean setReflectionsDelay(int dso,
float fValue)
public boolean setReverb(int dso,
long lValue)
public boolean setReverbDelay(int dso,
float fValue)
public boolean setEnvironment(int dso,
int dwValue)
public boolean setEnvironmentSize(int dso,
float fValue)
public boolean setEnvironmentDiffusion(int dso,
float fValue)
public boolean setAirAbsorption(int dso,
float fValue)
public boolean setFlags(int dso,
int dwValue)
public boolean setScaleDecayTime(int dso,
boolean bValue)
public boolean setScaleReflections(int dso,
boolean bValue)
public boolean setScaleReflectionsDelay(int dso,
boolean bValue)
public boolean setScaleReverb(int dso,
boolean bValue)
public boolean setScaleReverbDelay(int dso,
boolean bValue)
public boolean setClipDecayHF(int dso,
boolean bValue)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||