public class IrAudioDevice extends Object implements IHarcHardware, IRawIrSender
repeatMax| Constructor and Description |
|---|
IrAudioDevice(int sampleFrequency,
int channels,
boolean omitTail,
boolean verbose) |
IrAudioDevice(int sampleFrequency,
int sampleSize,
int channels,
boolean omitTail,
boolean verbose) |
IrAudioDevice(int sampleFrequency,
int sampleSize,
int channels,
boolean bigEndian,
boolean omitTail,
boolean square,
boolean divide,
boolean verbose) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getSampleFrequency() |
Transmitter |
getTransmitter()
Returns a default Transmitter for the device.
|
String |
getVersion()
Returns the hardware version (not the version of the driver software).
|
boolean |
isValid()
Tries to identify instances that are not valid.
|
void |
open()
Opens the device with previously set parameters.
|
boolean |
sendIr(org.harctoolbox.ircore.IrSignal irSignal,
int count,
Transmitter transmitter) |
void |
setChannels(int channels) |
void |
setDebug(int debug)
Sets a debug parameter.
|
void |
setOmitTail(boolean omitTail) |
void |
setSampleFrequency(int sampleFrequency) |
void |
setSampleSize(int sampleSize) |
void |
setTimeout(int timeout)
Set timeout in milliseconds.
|
void |
setVerbose(boolean verbose)
Sets a verbosity flag, causing commands to be executed verbosely.
|
public IrAudioDevice(int sampleFrequency,
int sampleSize,
int channels,
boolean bigEndian,
boolean omitTail,
boolean square,
boolean divide,
boolean verbose)
sampleFrequency - sampleSize - channels - bigEndian - omitTail - square - divide - verbose - public IrAudioDevice(int sampleFrequency,
int channels,
boolean omitTail,
boolean verbose)
sampleFrequency - channels - omitTail - verbose - public IrAudioDevice(int sampleFrequency,
int sampleSize,
int channels,
boolean omitTail,
boolean verbose)
sampleFrequency - sampleSize - channels - omitTail - verbose - public boolean sendIr(org.harctoolbox.ircore.IrSignal irSignal,
int count,
Transmitter transmitter)
throws NoSuchTransmitterException,
IOException,
HarcHardwareException,
org.harctoolbox.ircore.InvalidArgumentException
sendIr in interface IRawIrSenderNoSuchTransmitterExceptionIOExceptionorg.harctoolbox.ircore.InvalidArgumentExceptionHarcHardwareExceptionpublic String getVersion() throws IOException
IHarcHardwaregetVersion in interface IHarcHardwareIOExceptionpublic void setVerbose(boolean verbose)
IHarcHardwaresetVerbose in interface IHarcHardwareverbose - on or offpublic void setTimeout(int timeout)
IHarcHardwaresetTimeout in interface IHarcHardwaretimeout - Timeout in milliseconds.public boolean isValid()
IHarcHardwareisValid in interface IHarcHardwarepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void open()
throws IOException
IHarcHardwareopen in interface IHarcHardwareIOExceptionpublic Transmitter getTransmitter()
IRawIrSendergetTransmitter in interface IRawIrSenderpublic void setDebug(int debug)
IHarcHardwaresetDebug in interface IHarcHardwarepublic int getSampleFrequency()
public void setSampleFrequency(int sampleFrequency)
sampleFrequency - the sampleFrequency to setpublic void setSampleSize(int sampleSize)
sampleSize - the sampleSize to setpublic void setChannels(int channels)
channels - the channels to setpublic void setOmitTail(boolean omitTail)
omitTail - the omitTail to setCopyright © 2020. All rights reserved.