Lines Matching defs:audioData
975 * @param audioData the array that holds the data to play.
976 * @param offsetInBytes the offset expressed in bytes in audioData where the data to play
978 * @param sizeInBytes the number of bytes to read in audioData after the offset.
984 public int write(byte[] audioData, int offsetInBytes, int sizeInBytes) {
990 if ( (audioData == null) || (offsetInBytes < 0 ) || (sizeInBytes < 0)
992 || (offsetInBytes + sizeInBytes > audioData.length)) {
996 int ret = native_write_byte(audioData, offsetInBytes, sizeInBytes, mAudioFormat);
1016 * @param audioData the array that holds the data to play.
1017 * @param offsetInShorts the offset expressed in shorts in audioData where the data to play
1019 * @param sizeInShorts the number of bytes to read in audioData after the offset.
1025 public int write(short[] audioData, int offsetInShorts, int sizeInShorts) {
1031 if ( (audioData == null) || (offsetInShorts < 0 ) || (sizeInShorts < 0)
1033 || (offsetInShorts + sizeInShorts > audioData.length)) {
1037 int ret = native_write_short(audioData, offsetInShorts, sizeInShorts, mAudioFormat);
1247 private native final int native_write_byte(byte[] audioData,
1250 private native final int native_write_short(short[] audioData,