Class AudioTransmitterBean

All Implemented Interfaces:
ImageObserver, MenuContainer, Closeable, Serializable, AutoCloseable, Accessible

public class AudioTransmitterBean extends HardwareBean
See Also:
  • Field Details

  • Constructor Details

    • AudioTransmitterBean

      public AudioTransmitterBean()
      Creates new form AudioTransmitterBean
    • AudioTransmitterBean

      public AudioTransmitterBean(GuiUtils guiUtils)
      Creates new form AudioParametersBean
      Parameters:
      guiUtils -
    • AudioTransmitterBean

      public AudioTransmitterBean(GuiUtils guiUtils, boolean verbose, int sampleFrequency, int channels, int sampleSize, boolean omitTrailingGap)
      Creates new form AudioParametersBean
      Parameters:
      guiUtils -
      verbose -
      sampleFrequency -
      channels -
      sampleSize -
      omitTrailingGap -
  • Method Details

    • getSampleSize

      public int getSampleSize()
      Returns:
      the sampleSize
    • getBigEndian

      public boolean getBigEndian()
      Returns:
      the bigEndian
    • getDivideCarrier

      public boolean getDivideCarrier()
      Returns:
      the divideCarrier
    • getSquare

      public boolean getSquare()
      Returns:
      the square
    • getChannels

      public int getChannels()
    • getSampleFrequency

      public int getSampleFrequency()
    • getOmitTrailingGap

      public boolean getOmitTrailingGap()
    • getAudioFormat

      public AudioFormat getAudioFormat()
    • newWave

      public org.harctoolbox.harchardware.ir.Wave newWave(org.harctoolbox.ircore.ModulatedIrSequence irSequence) throws org.harctoolbox.ircore.InvalidArgumentException
      Throws:
      org.harctoolbox.ircore.InvalidArgumentException
    • setupHardware

      public void setupHardware()
    • export

      public void export(File file, org.harctoolbox.ircore.ModulatedIrSequence irSequence) throws org.harctoolbox.ircore.InvalidArgumentException
      Throws:
      org.harctoolbox.ircore.InvalidArgumentException
    • play

      public void play(org.harctoolbox.ircore.ModulatedIrSequence irSequence) throws LineUnavailableException, IOException, org.harctoolbox.ircore.InvalidArgumentException
      Throws:
      LineUnavailableException
      IOException
      org.harctoolbox.ircore.InvalidArgumentException
    • newWaveExporter

      public WaveExporter newWaveExporter()
    • getName

      public String getName()
      Description copied from class: HardwareBean
      Returns a somewhat friendly name of the class.
      Overrides:
      getName in class HardwareBean
      Returns:
      name
    • canSend

      public boolean canSend()
      Default implementation, override whenever the subclass can send.
      Overrides:
      canSend in class HardwareBean
      Returns:
      false
    • sendIr

      public boolean sendIr(org.harctoolbox.ircore.IrSignal irSignal, int count) throws HardwareUnavailableException, org.harctoolbox.harchardware.HarcHardwareException, IOException, org.harctoolbox.ircore.InvalidArgumentException
      Description copied from class: HardwareBean
      Default implementation, override whenever the subclass can send.
      Overrides:
      sendIr in class HardwareBean
      Returns:
      success of operation
      Throws:
      HardwareUnavailableException
      org.harctoolbox.harchardware.ir.NoSuchTransmitterException
      org.harctoolbox.harchardware.HarcHardwareException
      IOException
      org.harctoolbox.ircore.InvalidArgumentException
    • open

      public void open() throws IOException, org.harctoolbox.harchardware.HarcHardwareException
      Specified by:
      open in class HardwareBean
      Throws:
      IOException
      org.harctoolbox.harchardware.HarcHardwareException
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in class HardwareBean
      Throws:
      IOException