Home
last modified time | relevance | path

Searched refs:bufferSizeInFrames (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/jni/
Dandroid_media_AudioTrack.cpp750 jobject thiz, jint bufferSizeInFrames) { in android_media_AudioTrack_set_buffer_size_frames() argument
760 if (bufferSizeInFrames < 0) { in android_media_AudioTrack_set_buffer_size_frames()
761 bufferSizeInFrames = 0; in android_media_AudioTrack_set_buffer_size_frames()
763 ssize_t result = lpTrack->setBufferSizeInFrames(bufferSizeInFrames); in android_media_AudioTrack_set_buffer_size_frames()
/frameworks/base/media/java/android/media/
DAudioTrack.java1626 public int setBufferSizeInFrames(@IntRange (from = 0) int bufferSizeInFrames) { in setBufferSizeInFrames()
1630 if (bufferSizeInFrames < 0) { in setBufferSizeInFrames()
1633 return native_set_buffer_size_frames(bufferSizeInFrames); in setBufferSizeInFrames()
3627 private native final int native_set_buffer_size_frames(int bufferSizeInFrames); in native_set_buffer_size_frames() argument
/frameworks/av/media/libaudioclient/
DAudioTrack.cpp1057 ssize_t bufferSizeInFrames = (ssize_t) mProxy->getBufferSizeInFrames(); in getBufferDurationInUs() local
1058 if (bufferSizeInFrames < 0) { in getBufferDurationInUs()
1059 return (status_t)bufferSizeInFrames; in getBufferDurationInUs()
1061 *duration = (int64_t)((double)bufferSizeInFrames * 1000000 in getBufferDurationInUs()
1066 ssize_t AudioTrack::setBufferSizeInFrames(size_t bufferSizeInFrames) in setBufferSizeInFrames() argument
1076 return (ssize_t) mProxy->setBufferSizeInFrames((uint32_t) bufferSizeInFrames); in setBufferSizeInFrames()
/frameworks/base/media/jni/
Dandroid_media_MediaPlayer2.cpp1350 size_t bufferSizeInFrames = track->frameCount(); in android_media_MediaPlayer2_native_on_stream_data_request() local
1356 bufferSizeInFrames * audio_bytes_per_sample(format) * track->channelCount(); in android_media_MediaPlayer2_native_on_stream_data_request()
1359 bufferSizeInBytes = bufferSizeInFrames; in android_media_MediaPlayer2_native_on_stream_data_request()
/frameworks/av/media/libmediaplayer2/
DJAudioTrack.cpp423 int bufferSizeInFrames = env->CallIntMethod(mAudioTrackObj, jGetBufferSizeInFrames); in getBufferDurationInUs() local
429 *duration = (int64_t) (bufferSizeInFrames * secondToMicro / (sampleRate * speed)); in getBufferDurationInUs()
/frameworks/av/services/audioflinger/
DTracks.cpp726 const size_t bufferSizeInFrames = (size_t)mAudioTrackServerProxy->getBufferSizeInFrames(); in appendDump() local
728 const char modifiedBufferChar = bufferSizeInFrames < mFrameCount in appendDump()
729 ? 'r' /* buffer reduced */: bufferSizeInFrames > mFrameCount in appendDump()
759 bufferSizeInFrames, in appendDump()