Search found 9 matches

by Johnson
Tue Jun 03, 2014 8:02 pm
Forum: JP1 - Software
Topic: IrpMaster, program/library for IRP rendering, released
Replies: 53
Views: 190748

wav in android

I change some codes, include the wav header

----
public Wave(double freq, double[] data, int sampleFrequency,
int sampleSize, int channels, boolean bigEndian, boolean omitTail,
boolean square, boolean divide) {
// if (data == null || data.length == 0)
// throw new ...
by Johnson
Fri May 30, 2014 2:23 am
Forum: JP1 - Software
Topic: IrpMaster, program/library for IRP rendering, released
Replies: 53
Views: 190748

work in Android

:D It works now.
by Johnson
Wed May 28, 2014 10:38 pm
Forum: JP1 - Software
Topic: IrpMaster, program/library for IRP rendering, released
Replies: 53
Views: 190748

android problem

Hi Barf,

I use the play function in Android phone, but not work. The wave is similar, very very similar, but not match.

Pls take a look at my code

-----play() function -----
int sampleRateInHz = 44100;
int channelConfig =2 ;
int audioFormat = AudioFormat.ENCODING_PCM_8BIT; // pcm_8_bit

Log.e ...
by Johnson
Wed May 28, 2014 2:03 am
Forum: JP1 - Software
Topic: IrpMaster, program/library for IRP rendering, released
Replies: 53
Views: 190748

two source files

Thx Barf.
Use ant, I get the two files.
If any progress, I let you know.
by Johnson
Tue May 27, 2014 7:23 pm
Forum: JP1 - Beginners
Topic: how to setup in android
Replies: 3
Views: 4411

nblibraries.properties content

Thank you Barf.

I am building the source with ant, but fail.

How to create the content for lib/nblibraries.properties?
by Johnson
Tue May 27, 2014 7:21 pm
Forum: JP1 - Software
Topic: IrpMaster, program/library for IRP rendering, released
Replies: 53
Views: 190748

how to create nblibraries.properties

Thx Barf. :D

When I ant the source, some errors occur, pls help me:

ant
Buildfile: /Volumes/back/project/sound/IrpMaster-src-1.0.0/build.xml

-antlr-pre-init:

-pre-init:

-init-private:

-pre-init-libraries:

-init-private-libraries:

-init-libraries:

BUILD FAILED
/Volumes/back/project/sound ...
by Johnson
Tue May 27, 2014 4:06 am
Forum: JP1 - Software
Topic: IrpMaster, program/library for IRP rendering, released
Replies: 53
Views: 190748

no IrpLexer.java

Hi,
I download the source code of IrMaster from
http://www.harctoolbox.org/downloads/Ir ... -1.0.0.zip.

But Eclipse prompt me some error info, pls take a look, it says some classes do not exist like IrpLexer.java , where can I get the class?


Thanks.
by Johnson
Tue May 27, 2014 3:23 am
Forum: JP1 - Beginners
Topic: how to setup in android
Replies: 3
Views: 4411

android

Maybe some difference from Android,

in Java we offen use "import javax.sound.sampled.AudioFormat;", but in android need to use "import android.media.AudioFormat;"
by Johnson
Tue May 27, 2014 3:21 am
Forum: JP1 - Beginners
Topic: how to setup in android
Replies: 3
Views: 4411

how to setup in android

Hi, my friends,

thank you for your sdk in ir converting. It works in Java SDK 1.7.

My program some like below,
--------------
double[] data1 = {6032, 1955, 600, 1105, 568, 1112, 573, 516, 608, 510, 678, 1002, 600, 517, 675, 1003, 597, 519, 653, 464, 678, 1005, 598, 518, 674, 1006, 595, 1109, 573 ...