2016-09-19, 11:26
Take care:
Old, since API v3, you still need that:
New since API v23, you will need that for our PT:
It's a simple overwrite, needed so that the jni can map it correctly.
Edit: If you are really lazy (not recommended), just add the second method and call your first method ommiting the additional parameter. Not recommended, cause of the blocking mode that you cannot handle then. We assume blocking mode in the sink. As this is where the loop for adding packages stop.
Old, since API v3, you still need that:
Code:
int write (short[] audioData,
int offsetInShorts,
int sizeInShorts)
Code:
int write (short[] audioData,
int offsetInShorts,
int sizeInShorts,
int writeMode)
It's a simple overwrite, needed so that the jni can map it correctly.
Edit: If you are really lazy (not recommended), just add the second method and call your first method ommiting the additional parameter. Not recommended, cause of the blocking mode that you cannot handle then. We assume blocking mode in the sink. As this is where the loop for adding packages stop.