2016-09-21, 07:38
(2016-09-20, 09:11)fritsch Wrote: I know that the build works, cause it works on Nexus with Android N.
You just have to add the new method in there.
Easiest:
Code:public int write(short[] audioData, int offsetInShorts, int sizeInShorts
@WriteMode int writeMode) {
// lazy way to ignore the blocking argument
return write(audioData, offsetInShorts, sizeInShorts);
}
But as you support blocking for float anyways, it's just the code I gave you above already.
Hi
I tried to do the 'short' the same as for 'float'
But I get an Android compile error for Android LP.
I'f I use your method above, I get the same compile error also as below.
Something is not right in android_media_AudioTrack.cpp
Error
"frameworks/base/media/java/android/media/AudioTrack.java:45: error 101: Unresolved link/see tag "#write(short[], int, int)" in android.media.AudioTrack
DroidDoc took 427 sec. to write docs to out/target/common/docs/doc-comment-check
make: *** [out/target/common/docs/doc-comment-check-timestamp] Error 45"
Android compile log
http://pastebin.com/K30JXbz2
android_media_AudioTrack.cpp (Problem possiblly here)
http://pastebin.com/sbLGHT5J
AudioTrack.java
http://pastebin.com/N3R2jpCW
Do you have any advise?
I don't have a lot of Android coding knowledge, so for me it is very difficult if I run into a problem.
I asked another user to compile Marshmallow firmware with the IEC patches where the 'short' is already included correctly, so waiting for that also.