Your Universal Remote Control Center
RemoteCentral.com
Everything Else Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 8 made on Friday August 23, 2013 at 12:37
Barf
Long Time Member
Joined:
Posts:
August 2013
350
Hi Achin,
the program enclosed does compile and run using the current version of IrpMaster, version 0.2.2.  Most likely you have managed to download an older version. Try [Link: harctoolbox.org] (I should probably re-organize my download page to make it harder to download non-current versions... :-).) Let me know if this helps.

package javaapplication41;

import java.io.File;
import org.harctoolbox.IrpMaster.IrSignal;
import org.harctoolbox.IrpMaster.IrpMasterException;
import org.harctoolbox.IrpMaster.ModulatedIrSequence;
import org.harctoolbox.IrpMaster.Pronto;
import org.harctoolbox.IrpMaster.Wave;

public class JavaApplication41 {

    public static void main(String[] args) {
        try {
            IrSignal irSignal = Pronto.ccfSignal("0000 006D 0022 0002 0155 00AA 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0040 0015 0040 0015 0015 0015 0040 0015 05ED 0155 0055 0015 0E47");
            ModulatedIrSequence modulatedIrSequence = irSignal.toModulatedIrSequence(1);
            Wave wave = new Wave(modulatedIrSequence, 48000, 8, 1, false, true, true, false);
            wave.export(new File("Irpwavefile.wav"));
        } catch (IrpMasterException ex) {
        }
    }
}


Hosting Services by ipHouse