Home
last modified time | relevance | path

Searched refs:audioData (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/media/java/android/media/
DAudioTrack.java2438 public int write(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes) { in write() argument
2439 return write(audioData, offsetInBytes, sizeInBytes, WRITE_BLOCKING); in write()
2484 public int write(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes, in write() argument
2496 if ( (audioData == null) || (offsetInBytes < 0 ) || (sizeInBytes < 0) in write()
2498 || (offsetInBytes + sizeInBytes > audioData.length)) { in write()
2506 final int ret = native_write_byte(audioData, offsetInBytes, sizeInBytes, mAudioFormat, in write()
2553 public int write(@NonNull short[] audioData, int offsetInShorts, int sizeInShorts) { in write() argument
2554 return write(audioData, offsetInShorts, sizeInShorts, WRITE_BLOCKING); in write()
2597 public int write(@NonNull short[] audioData, int offsetInShorts, int sizeInShorts, in write() argument
2609 if ( (audioData == null) || (offsetInShorts < 0 ) || (sizeInShorts < 0) in write()
[all …]
DAudioRecord.java1164 public int read(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes) { in read() argument
1165 return read(audioData, offsetInBytes, sizeInBytes, READ_BLOCKING); in read()
1195 public int read(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes, in read() argument
1206 if ( (audioData == null) || (offsetInBytes < 0 ) || (sizeInBytes < 0) in read()
1208 || (offsetInBytes + sizeInBytes > audioData.length)) { in read()
1212 return native_read_in_byte_array(audioData, offsetInBytes, sizeInBytes, in read()
1237 public int read(@NonNull short[] audioData, int offsetInShorts, int sizeInShorts) { in read() argument
1238 return read(audioData, offsetInShorts, sizeInShorts, READ_BLOCKING); in read()
1267 public int read(@NonNull short[] audioData, int offsetInShorts, int sizeInShorts, in read() argument
1278 if ( (audioData == null) || (offsetInShorts < 0 ) || (sizeInShorts < 0) in read()
[all …]
DMediaSync.java508 @NonNull ByteBuffer audioData, int bufferId, long presentationTimeUs) { in queueAudio()
515 mAudioBuffers.add(new AudioBuffer(audioData, bufferId, presentationTimeUs)); in queueAudio()
/frameworks/av/media/libaaudio/tests/
Dtest_aaudio_monkey.cpp45 void *audioData,
170 void *audioData, in renderAudio() argument
178 int16_t *audioBuffer = (int16_t *) audioData; in renderAudio()
188 float *audioBuffer = (float *) audioData; in renderAudio()
214 void *audioData, in AAudioMonkeyDataCallback() argument
223 return monkey->renderAudio(stream, audioData, numFrames); in AAudioMonkeyDataCallback()
Dtest_interference.cpp35 void *audioData, in MyDataCallbackProc() argument
41 memset(audioData, 0, numSamples * sizeof(int16_t)); in MyDataCallbackProc()
43 memset(audioData, 0, numSamples * sizeof(float)); in MyDataCallbackProc()
Dtest_various.cpp33 void *audioData, in NoopDataCallbackProc() argument
38 (void) audioData; in NoopDataCallbackProc()
486 void *audioData, in CallbackOnceProc() argument
490 (void) audioData; in CallbackOnceProc()
571 void *audioData, in DangerousDataCallbackProc() argument
573 (void) audioData; in DangerousDataCallbackProc()
Dtest_open_params.cpp32 void *audioData, in MyDataCallbackProc() argument
37 (void) audioData; in MyDataCallbackProc()
Dtest_stop_hang.cpp66 void *audioData, in s_myDataCallbackProc() argument
70 (void) audioData; in s_myDataCallbackProc()
Dtest_bad_disconnect.cpp49 void *audioData, in s_myDataCallbackProc() argument
53 (void) audioData; in s_myDataCallbackProc()
Dtest_return_stop.cpp66 void *audioData, in s_myDataCallbackProc() argument
69 (void) audioData; in s_myDataCallbackProc()
Dtest_timestamps.cpp104 void *audioData __unused, in timestampDataCallbackProc()
/frameworks/av/media/libaaudio/examples/utils/
DAAudioSimpleRecorder.h254 void *audioData, in SimpleRecorderDataCallbackProc() argument
270 int16_t *audioBuffer = (int16_t *) audioData; in SimpleRecorderDataCallbackProc()
282 float *audioBuffer = (float *) audioData; in SimpleRecorderDataCallbackProc()
DAAudioSimplePlayer.h311 void *audioData, in SimplePlayerDataCallbackProc() argument
366 int16_t *audioBuffer = (int16_t *) audioData; in SimplePlayerDataCallbackProc()
374 float *audioBuffer = (float *) audioData; in SimplePlayerDataCallbackProc()
/frameworks/base/cmds/bootanimation/
Daudioplay.cpp338 if (part.audioData != nullptr) { in init()
353 initAudioThread = new InitAudioThread(partWithAudio->audioData, in init()
360 if (playNumber == 0 && part.audioData && playSoundsAllowed()) { in playPart()
367 audioplay::playClip(part.audioData, part.audioLength); in playPart()
DBootAnimation.h83 uint8_t* audioData; member
DBootAnimation.cpp706 part.audioData = nullptr; in parseAnimationDesc()
723 part.audioData = nullptr; in parseAnimationDesc()
776 part.audioData = (uint8_t *)map->getDataPtr(); in preloadZip()
/frameworks/av/media/libaaudio/src/core/
DAudioStream.h270 aaudio_data_callback_result_t maybeCallDataCallback(void *audioData, int32_t numFrames);
506 virtual const void * maybeConvertDeviceData(const void *audioData, int32_t numFrames) { in maybeConvertDeviceData() argument
507 return audioData; in maybeConvertDeviceData()
DAudioStream.cpp401 aaudio_data_callback_result_t AudioStream::maybeCallDataCallback(void *audioData, in maybeCallDataCallback() argument
412 audioData, in maybeCallDataCallback()
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamRecord.cpp291 const void * AudioStreamRecord::maybeConvertDeviceData(const void *audioData, int32_t numFrames) { in maybeConvertDeviceData() argument
301 (const int16_t *) audioData, in maybeConvertDeviceData()
305 return audioData; in maybeConvertDeviceData()
DAudioStreamRecord.h79 const void * maybeConvertDeviceData(const void *audioData, int32_t numFrames) override;
/frameworks/av/media/libaaudio/src/client/
DAudioStreamInternal.cpp615 uint8_t* audioData = (uint8_t*)buffer; in processData() local
625 aaudio_result_t framesProcessed = processDataNow(audioData, framesLeft, in processData()
632 audioData += framesProcessed * getBytesPerFrame(); in processData()
/frameworks/av/media/libaaudio/examples/loopback/src/
Dloopback.cpp161 void *audioData, in MyDataCallbackProc() argument
167 float *outputData = (float *) audioData; in MyDataCallbackProc()
186 memset(audioData, 0 /* value */, numBytes); in MyDataCallbackProc()
/frameworks/av/media/libaaudio/include/aaudio/
DAAudio.h808 void *audioData,