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

/frameworks/base/core/jni/
H A Dandroid_media_AudioTrack.cpp745 jobject thiz, jint bufferSizeInFrames) {
755 if (bufferSizeInFrames < 0) {
756 bufferSizeInFrames = 0;
758 ssize_t result = lpTrack->setBufferSizeInFrames(bufferSizeInFrames);
744 android_media_AudioTrack_set_buffer_size_frames(JNIEnv *env, jobject thiz, jint bufferSizeInFrames) argument
/frameworks/base/media/java/android/media/
H A DAudioTrack.java1410 * If bufferSizeInFrames is less than zero then {@link #ERROR_BAD_VALUE}
1415 * @param bufferSizeInFrames requested buffer size in frames
1420 public int setBufferSizeInFrames(int bufferSizeInFrames) { argument
1424 if (bufferSizeInFrames < 0) {
1427 return native_set_buffer_size_frames(bufferSizeInFrames);
3223 private native final int native_set_buffer_size_frames(int bufferSizeInFrames); argument
/frameworks/av/media/libaudioclient/
H A DAudioTrack.cpp1050 ssize_t bufferSizeInFrames = (ssize_t) mProxy->getBufferSizeInFrames(); local
1051 if (bufferSizeInFrames < 0) {
1052 return (status_t)bufferSizeInFrames;
1054 *duration = (int64_t)((double)bufferSizeInFrames * 1000000
1059 ssize_t AudioTrack::setBufferSizeInFrames(size_t bufferSizeInFrames) argument
1069 return (ssize_t) mProxy->setBufferSizeInFrames((uint32_t) bufferSizeInFrames);
/frameworks/av/services/audioflinger/
H A DTracks.cpp590 const size_t bufferSizeInFrames = (size_t)mAudioTrackServerProxy->getBufferSizeInFrames(); local
592 const char modifiedBufferChar = bufferSizeInFrames < mFrameCount
593 ? 'r' /* buffer reduced */: bufferSizeInFrames > mFrameCount
618 bufferSizeInFrames,
/frameworks/av/media/libmediaplayer2/
H A DJAudioTrack.cpp409 int bufferSizeInFrames = env->CallIntMethod(mAudioTrackObj, jGetBufferSizeInFrames); local
415 *duration = (int64_t) (bufferSizeInFrames * secondToMicro / (sampleRate * speed));
/frameworks/base/media/jni/
H A Dandroid_media_MediaPlayer2.cpp1450 size_t bufferSizeInFrames = track->frameCount(); local
1456 bufferSizeInFrames * audio_bytes_per_sample(format) * track->channelCount();
1459 bufferSizeInBytes = bufferSizeInFrames;

Completed in 53 milliseconds