Package org.harctoolbox.jirc
Class Transmit
java.lang.Object
org.harctoolbox.jirc.Transmit
This class is a translation of transmit.c from Lirc 0.9.0, and renders the
signal. A Transmit is first constructed, then, getValid() and getData()
deliver the rendered signal as a sequence of durations.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Transmit
-
-
Method Details
-
setDebug
public static void setDebug(int newDebug) -
getValid
public boolean getValid()- Returns:
- true if the rendering produced valid result.
-
getData
public int[] getData(int gap) Returns the rendered durations as an array of ints. Guaranteed to end with a gap, if not already present, add it of size from the argument.- Parameters:
gap
- Ending duration to add, if necessary.- Returns:
- array of durations.
- See Also:
-
getData
public int[] getData()Returns the rendered durations as an array of ints. Due to Lirc's idiosyncrasies, it may be of odd size, i.e. ending with a mark.- Returns:
- array of durations.
- See Also:
-