hi, i will give description of my wave hardware as you asked me in my another thread, you can check in this link about my hardware
[Link: rtfms.com] in the 4th picture , i am using the same device, i mean the two LEDs which are connected to 3.5 mm jack.
now i have used your above codes and i have some issues -
i have sansui TV, and i have capture it's POWER button IR code 40BF48B7 and when i capture it's IR code from different angles of my remote, it gives me 40BF48B7 this IR code , i mean to say whatever be the position of my remote it gives me this 40BF48B7 static value,
and using your above code i have created a wav file and when i play this wave in-front of my IR capturing device it gives me different Ir code value from one position,I am not understanding why it is giving me different value from same position and my TV is not getting ON/OFF . i am using the below code , i have used both code
HashMap parameters = new HashMap();
long A = Long.parseLong("40BF48B7", 16);
long D = (A & 0xff000000L) >> 24;
parameters.put("D", D);
long S = (A & 0x00ff0000L) >> 16;
parameters.put("S", S);
long F = A & 0xffffL;
parameters.put("F", F);
IrSignal irSignal = new IrSignal("IrpProtocols.ini", "nec1-f16", parameters);
System.out.print(irSignal);
ModulatedIrSequence modulatedIrSequence = irSignal.toModulatedIrSequence(1);
Wave wave = new Wave(modulatedIrSequence, 48000, 8, 2, false, false, true, false);
wave.export(new File("Newfile6.wav"));
and i also used this code
[protocol]name=rawnecirp={38.4k,564}<1,-1|1,-3>(16,-8,A:32,1,-78,(16,-4,1,-173)*)[A:0..4294967295]
to the end of IrpProtocols.ini and use code like
HashMap parameters = new HashMap();
parameters.add("A", Long.ParseLong("40BF48B7", 16));
IrSignal irSignal = new IrSignal("IrpProtocols.ini", "rawnec", parameters);