palmos
Class SndCommand

java.lang.Object
  |
  +--palmos.SndCommand

public class SndCommand
extends java.lang.Object

A PalmOS sound command block.


Field Summary
 byte cmd
           
 int param1
           
 short param2
           
 short param3
           
 
Constructor Summary
SndCommand()
          no-args default constructor (just for compatibility reasons)
SndCommand(int freqHz, int timeMillis, int amplPercent)
          creates a blocking sound command with given parameters.
 
Method Summary
 void setParams(int freqHz, int timeMillis, int amplPercent)
          sets the sound command to the given parameters.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

cmd

public byte cmd

param1

public int param1

param2

public short param2

param3

public short param3
Constructor Detail

SndCommand

public SndCommand()
no-args default constructor (just for compatibility reasons)

SndCommand

public SndCommand(int freqHz,
                  int timeMillis,
                  int amplPercent)
creates a blocking sound command with given parameters.
Parameters:
freqHz - frequency in Hertz
timeMillis - duration in milli-seconds
amplPercent - amplitude in percent
Method Detail

setParams

public void setParams(int freqHz,
                      int timeMillis,
                      int amplPercent)
sets the sound command to the given parameters.
Parameters:
freqHz - frequency in Hertz
timeMillis - duration in milli-seconds
amplPercent - amplitude in percent