Dear all,
I recently downloaded and built the echoprint test for android on eclipse but I am unable to run the test case for it. Is there a user manual or step by step instruction to do the same naywhere on this forum?? I am also new to building android applications but want to build a custom app using echoprint. I have been able to build the code and was trying to run the same using android virtual machine through eclipse from the Android SDK.
When I launch the echoprinttest as an android application, I can get to the "test" button on the emulator but it gives me a "Illegal argument exception: Invalid audio buffer size".
Any help would be greatly apreciated.
This is the message I am getting on the launch console of eclipse:
[2013-05-14 18:07:41 - EchoprintTest] ------------------------------
[2013-05-14 18:07:41 - EchoprintTest] Android Launch!
[2013-05-14 18:07:41 - EchoprintTest] adb is running normally.
[2013-05-14 18:07:41 - EchoprintTest] Performing edu.gvsu.masl.EchoprintTestActivity activity launch
[2013-05-14 18:07:41 - EchoprintTest] Automatic Target Mode: launching new emulator with compatible AVD 'test'
[2013-05-14 18:07:41 - EchoprintTest] Launching a new emulator with Virtual Device 'test'
[2013-05-14 18:08:02 - EchoprintTest] New emulator found: emulator-5554
[2013-05-14 18:08:02 - EchoprintTest] Waiting for HOME ('android.process.acore') to be launched...
[2013-05-14 18:09:48 - EchoprintTest] HOME is up on device 'emulator-5554'
[2013-05-14 18:09:48 - EchoprintTest] Uploading EchoprintTest.apk onto device 'emulator-5554'
[2013-05-14 18:09:48 - EchoprintTest] Installing EchoprintTest.apk...
[2013-05-14 18:11:33 - EchoprintTest] Success!
[2013-05-14 18:11:33 - EchoprintTest] Starting activity edu.gvsu.masl.EchoprintTestActivity on device emulator-5554
[2013-05-14 18:11:37 - EchoprintTest] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=edu.gvsu.masl/.EchoprintTestActivity }
Errors:
05-14 12:41:42.973: D/gralloc_goldfish(818): Emulator without GPU emulation detected.
05-14 13:04:15.234: E/AudioRecord(818): Unsupported configuration: sampleRate 11025, format 1, channelMask 0x10
05-14 13:04:15.415: D/dalvikvm(818): GC_FOR_ALLOC freed 45K, 7% free 2560K/2728K, paused 94ms, total 109ms
05-14 13:04:15.444: W/System.err(818): java.lang.IllegalArgumentException: Invalid audio buffer size.
05-14 13:04:15.444: W/System.err(818): at android.media.AudioRecord.audioBuffSizeCheck(AudioRecord.java:333)
05-14 13:04:15.454: W/System.err(818): at android.media.AudioRecord.<init>(AudioRecord.java:230)
05-14 13:04:15.454: W/System.err(818): at edu.gvsu.masl.echoprint.AudioFingerprinter.run(AudioFingerprinter.java:166)
05-14 13:04:15.454: W/System.err(818): at java.lang.Thread.run(Thread.java:856)
05-14 13:04:15.454: E/Fingerprinter(818): Invalid audio buffer size.