I can't get the demo app or Surprise to work on Google Nexus 5

75 views
Skip to first unread message

Walter Wang

unread,
Jan 17, 2017, 3:40:39 AM1/17/17
to musicg-api
Clap or Whistle detection both fail to detect any signal, does anyone have any ideas?

I am getting the following logs when I build the demo_app, (which compiles fine): 
I/System.out: debugger has settled (1436)
W/System: ClassLoader referenced unknown path: /data/app/com.musicg.demo.android-1/lib/arm64
I/InstantRun: Instant Run Runtime started. Android package is com.musicg.demo.android, real application class is null.
W/System: ClassLoader referenced unknown path: /data/app/com.musicg.demo.android-1/lib/arm64
W/System.err: DetectionAPI supports mono Wav only
W/System.err: DetectionAPI supports mono Wav only
I/System.out: Sound detected:
W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'int com.musicg.wave.WaveHeader.getBitsPerSample()' on a null object reference
W/System.err:     at com.musicg.api.DetectionApi.isSpecificSound(DetectionApi.java:80)
W/System.err:     at com.musicg.api.WhistleApi.isWhistle(WhistleApi.java:54)
W/System.err:     at com.musicg.demo.android.DetectorThread.run(DetectorThread.java:118)
W/System.err:     at java.lang.Thread.run(Thread.java:761)
Reply all
Reply to author
Forward
0 new messages