Searched refs:audioBuffer (Results 1 – 2 of 2) sorted by relevance
113 ByteBuffer audioBuffer = ByteBuffer.allocate(bufferSamples * Short.BYTES); in createSoundDataInShortByteBuffer() local114 ShortBuffer samples = audioBuffer.order(ByteOrder.nativeOrder()).asShortBuffer(); in createSoundDataInShortByteBuffer()121 audioBuffer.rewind(); in createSoundDataInShortByteBuffer()122 return audioBuffer; in createSoundDataInShortByteBuffer()654 public int read(ByteBuffer audioBuffer, int sizeInBytes) { in read() argument655 int bytes = super.read(audioBuffer, sizeInBytes); in read()660 ByteBuffer copy = audioBuffer.duplicate(); in read()670 public int read(ByteBuffer audioBuffer, int sizeInBytes, int readMode) { in read() argument671 int bytes = super.read(audioBuffer, sizeInBytes, readMode); in read()676 ByteBuffer copy = audioBuffer.duplicate(); in read()
815 AudioBuffer audioBuffer = mAudioBuffers.get(0); in checkReturnedAudioBuffer() local816 if (audioBuffer.mByteBuffer != byteBuffer in checkReturnedAudioBuffer()817 || audioBuffer.mBufferIndex != bufferIndex) { in checkReturnedAudioBuffer()