To register and login, use your Google, Twitter, Facebook, LinkedIn, or OpenID credentials.

This is allowing us to stop most spam registrations. We've deleted most of the spam accounts that got through, and we're closely watching for more.

android code for pdcore

jiyongjiyong Posts: 3
edited November 2012 in pd

=====================source File======================

       public void startRecording() {
Log.d("startRecoding", "recordStart" );
Intent intent = getIntent();
String recPath = intent.getStringExtra("URL");

Log.d("startRecoding", recPath );

PdBase.sendMessage("qq", "open", recPath);
PdBase.sendMessage("ww", "play_and_record");

}

public void stopRecording() {
PdBase.sendMessage("ee", "stop_recording");
recFile=null;
}

=====================pd File=========================

N canvas 1067 170 781 793 10;

X obj 319 103 bng 30 250 50 0 empty qq open 17 7 0 10 -262144 -1

-1;

X obj 324 147 openpanel;

X msg 305 204 open \$1;

X obj 208 267 readsf~ 2;

X obj 234 377 +~;

X obj 302 377 +~;

X obj 357 282 inlet~;

X obj 157 631 writesf~ 2;

X obj 406 569 dac~ 1 2;

X obj 35 101 bng 30 250 50 0 empty ww play_and_record 17 7 0 10

-262144 -1 -1;

X msg 94 214 start;

X msg 148 214 stop;

X msg 80 432 start;

X obj 181 119 bng 30 250 50 0 empty ee stop_recording 17 7 0 10

-262144 -1 -1;

X obj 171 167 t b b;

X msg 150 428 stop;

X msg -169 347 open /mnt/sdcard/mp3/aaa.wav;

X obj 37 163 t b b b;

X connect 0 0 1 0;

X connect 1 0 2 0;

X connect 2 0 3 0;

X connect 3 0 4 0;

X connect 3 1 5 0;

X connect 4 0 8 0;

X connect 4 0 7 0;

X connect 5 0 8 1;

X connect 5 0 7 1;

X connect 6 0 4 1;

X connect 6 0 5 1;

X connect 9 0 17 0;

X connect 10 0 3 0;

X connect 11 0 3 0;

X connect 12 0 7 0;

X connect 13 0 14 0;

X connect 14 0 11 0;

X connect 14 1 15 0;

X connect 15 0 7 0;

X connect 16 0 7 0;

X connect 17 0 10 0;

X connect 17 1 12 0;

#X connect 17 2 16 0;

Hi, i have question about android code for pdcore. especially, to call pd file from source code.
My soucre code and pd file are the same as above.
As you see, the pd file is for recording based voice and wav.

but, i don't know well how to code for calling this pd file in java.
i wonder how to code the source file for pd file or the opposite in this code.

and with this source file, it looks working.
i've got the aaa.wav file. but, i've got the message that this file format that are not supported, when i played the file in the app.

coulde you let me know how to do this.

Sign In or Register to comment.