amber.client.panel
Class PAudio
java.lang.Object
|
+--amber.client.panel.BaseControl
|
+--amber.client.panel.PAudio
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.awt.event.ComponentListener, java.util.EventListener, java.awt.event.FocusListener, java.awt.event.ItemListener, java.awt.event.KeyListener, MbInterface, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.TextListener, java.awt.event.WindowListener
- public class PAudio
- extends BaseControl
Panel Component Audio.
Is used to play sound clips in the client browser.
Sound file types which work are:
Sampling rates of 8192 Hz and 16384 Hz
SUN Sparc .AU file format
Coding: u-Law, A-Law, ADPCM, IMA ADPCM (also called DVI ADPCM), GSM
Single Channel (Mono)
Data encoding: bytes, 16-bit words, 32-bit longwords, 32-bit floats, 64-bit double floats, or 80-bit IEEE floats.
- Version:
- 1.0.0
- Author:
- Dr. David J. Knowles
- See Also:
ApplicationHandler,
ComponentHandler,
BaseComponent,
BaseControl
|
Method Summary |
void |
addListeners(BaseComponent listener)
|
void |
getAudio(java.lang.String audioName)
This function gets the Audio track and blocks until it is loaded. |
void |
init(RContainer mainParent,
int[] characteristics,
java.lang.String parameters)
This is the main initialisation function for this class. |
void |
parseParameters(java.lang.String parameter)
|
void |
processPacket(Packet packet)
This routine contains the logic to parse a packet and perform actions
based on the packet's contents. |
| Methods inherited from class amber.client.panel.BaseControl |
actionPerformed, canAdd, componentHidden, componentMoved, componentResized, componentShown, createDataInput, displayMessage, findBaseComponent, focusGained, focusLost, forwardPacket, getDataInput, getId, getIdFromInternalObject, getImage, getNonVisualObject, getParent, getVisualObject, isEventEnabled, isMyId, itemStateChanged, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, setEnabled, setId, setMessageBoxReturn, setParent, setVisible, textValueChanged, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PAudio
public PAudio()
init
public void init(RContainer mainParent,
int[] characteristics,
java.lang.String parameters)
- This is the main initialisation function for this class.
This is needed as the way we instantiate these classes mandates that only
the default constructor can be used.
For this reason we must have a separate initialisation function.
- Overrides:
init in class BaseControl
- Parameters:
mainParent - RContainer handle to the panel this is a component of.characteristics - int [6] containing information useful to the component
in the order ID, eventMask, x, y, w, h.parameters - String containing any required parameters separated by '|'
parseParameters
public void parseParameters(java.lang.String parameter)
- Overrides:
parseParameters in class BaseControl
addListeners
public void addListeners(BaseComponent listener)
- Overrides:
addListeners in class BaseControl
getAudio
public void getAudio(java.lang.String audioName)
- This function gets the Audio track and blocks until it is loaded.
- Parameters:
audioName - String containing the name of the file to load.
processPacket
public void processPacket(Packet packet)
- This routine contains the logic to parse a packet and perform actions
based on the packet's contents. In this class, does basic common tasks
that all applets must implement.
Override in the derived classes to do the magic.
- Overrides:
processPacket in class BaseControl
Copyright © 2002 Clearfield Research Ltd. All Rights Reserved.