Home
last modified time | relevance | path

Searched refs:framesPerBurst (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/av/media/libaaudio/tests/
Dtest_recovery.cpp34 int32_t framesPerBurst = 0; in main() local
80 framesPerBurst = AAudioStream_getFramesPerBurst(aaudioStream); in main()
83 bufferCapacity, framesPerBurst); in main()
85 int samplesPerBurst = framesPerBurst * actualChannelCount; in main()
101 buffer, framesPerBurst, in main()
108 } else if (framesWritten != framesPerBurst) { in main()
Dtest_open_params.cpp50 int32_t framesPerBurst = 0; in testOpenOptions() local
107 framesPerBurst = AAudioStream_getFramesPerBurst(aaudioStream); in testOpenOptions()
110 bufferCapacity, bufferCapacity % framesPerBurst); in testOpenOptions()
Dtest_bad_disconnect.cpp60 int32_t framesPerBurst = 0; in s_StartAudio() local
93 framesPerBurst = AAudioStream_getFramesPerBurst(s_AudioEngine.stream); in s_StartAudio()
95 printf("-------- started: deviceId = %3d, framesPerBurst = %3d\n", deviceId, framesPerBurst); in s_StartAudio()
Dtest_various.cpp651 int32_t framesPerBurst = 0; in TEST() local
669 framesPerBurst = AAudioStream_getFramesPerBurst(aaudioStream); in TEST()
672 bufferCapacity, bufferCapacity % framesPerBurst); in TEST()
678 actualSize = AAudioStream_setBufferSizeInFrames(aaudioStream, 2 * framesPerBurst); in TEST()
679 EXPECT_GT(actualSize, framesPerBurst); in TEST()
683 EXPECT_GT(actualSize, framesPerBurst); in TEST()
687 EXPECT_GT(actualSize, framesPerBurst); in TEST()
691 EXPECT_GT(actualSize, framesPerBurst); in TEST()
695 EXPECT_GT(actualSize, framesPerBurst); in TEST()
699 EXPECT_GT(actualSize, framesPerBurst); in TEST()
Dtest_timestamps.cpp156 int32_t framesPerBurst = 0; in testTimeStamps() local
231 framesPerBurst = AAudioStream_getFramesPerBurst(aaudioStream); in testTimeStamps()
232 printf(" framesPerBurst = %3d\n", framesPerBurst); in testTimeStamps()
235 requestedBufferSize = 4 * framesPerBurst; in testTimeStamps()
Dtest_return_stop.cpp231 int32_t framesPerBurst = AAudioStream_getFramesPerBurst(engine.stream); in main() local
233 … const int32_t bufferSize = AAudioStream_setBufferSizeInFrames(engine.stream, 2 * framesPerBurst); in main()
244 deviceId, framesPerBurst, actualPerfMode); in main()
Dtest_marshalling.cpp139 const size_t framesPerBurst = 32; in TEST() local
155 ringBufferA.setFramesPerBurst(framesPerBurst); in TEST()
/frameworks/av/services/oboeservice/
DAAudioServiceStreamShared.cpp79 int32_t framesPerBurst) { in calculateBufferCapacity() argument
91 if ((DEFAULT_BURSTS_PER_BUFFER * framesPerBurst) > MAX_FRAMES_PER_BUFFER) { in calculateBufferCapacity()
92 numBursts = MAX_FRAMES_PER_BUFFER / framesPerBurst; in calculateBufferCapacity()
98 numBursts = (requestedCapacityFrames + framesPerBurst - 1) / framesPerBurst; in calculateBufferCapacity()
106 if (numBursts > 0x8000 || framesPerBurst > 0x8000) { in calculateBufferCapacity()
108 numBursts, framesPerBurst); in calculateBufferCapacity()
111 int32_t capacityInFrames = numBursts * framesPerBurst; in calculateBufferCapacity()
DAAudioMixer.cpp36 void AAudioMixer::allocate(int32_t samplesPerFrame, int32_t framesPerBurst) { in allocate() argument
38 mFramesPerBurst = framesPerBurst; in allocate()
39 int32_t samplesPerBuffer = samplesPerFrame * framesPerBurst; in allocate()
DTimestampScheduler.h51 void setBurstPeriod(int32_t framesPerBurst, in setBurstPeriod() argument
53 mBurstPeriod = AAUDIO_NANOS_PER_SECOND * framesPerBurst / sampleRate; in setBurstPeriod()
DAAudioMixer.h29 void allocate(int32_t samplesPerFrame, int32_t framesPerBurst);
DAAudioServiceStreamShared.h106 int32_t framesPerBurst);
/frameworks/av/media/libaaudio/examples/utils/
DAAudioArgsParser.h509 int32_t framesPerBurst = AAudioStream_getFramesPerBurst(stream); in compareWithStream() local
510 printf(" Buffer: burst = %d\n", framesPerBurst); in compareWithStream()
513 if (framesPerBurst > 0) { in compareWithStream()
514 int32_t requestedSize = getNumberOfBursts() * framesPerBurst; in compareWithStream()
518 (sizeFrames / framesPerBurst), in compareWithStream()
519 framesPerBurst, in compareWithStream()
520 (sizeFrames % framesPerBurst)); in compareWithStream()
529 (capacityFrames / framesPerBurst), in compareWithStream()
530 framesPerBurst, in compareWithStream()
531 (capacityFrames % framesPerBurst)); in compareWithStream()
DAAudioSimpleRecorder.h132 int32_t framesPerBurst = AAudioStream_getFramesPerBurst(mStream); variable
133 AAudioStream_setBufferSizeInFrames(mStream, sizeInBursts * framesPerBurst);
DAAudioSimplePlayer.h148 int32_t framesPerBurst = AAudioStream_getFramesPerBurst(mStream); variable
149 int32_t bufferSizeFrames = sizeInBursts * framesPerBurst;
/frameworks/av/media/libaaudio/src/binding/
DRingBufferParcelable.cpp38 mFramesPerBurst(parcelable.framesPerBurst), in RingBufferParcelable()
51 result.framesPerBurst = mFramesPerBurst; in parcelable()
92 void RingBufferParcelable::setFramesPerBurst(int32_t framesPerBurst) { in setFramesPerBurst() argument
93 mFramesPerBurst = framesPerBurst; in setFramesPerBurst()
125 descriptor->framesPerBurst = mFramesPerBurst; in resolve()
DAAudioServiceDefinitions.h74 int32_t framesPerBurst; // for ISOCHRONOUS queues member
DRingBufferParcelable.h55 void setFramesPerBurst(int32_t framesPerBurst);
/frameworks/av/media/libaaudio/examples/input_monitor/src/
Dinput_monitor.cpp45 int32_t framesPerBurst = 0; in main() local
87 framesPerBurst = AAudioStream_getFramesPerBurst(aaudioStream); in main()
88 printf("DataFormat: framesPerBurst = %d\n",framesPerBurst); in main()
92 framesPerRead = framesPerBurst; in main()
/frameworks/av/media/libaaudio/examples/write_sine/src/
Dwrite_sine.cpp45 int32_t framesPerBurst = 0; in main() local
87 framesPerBurst = AAudioStream_getFramesPerBurst(aaudioStream); in main()
88 framesPerWrite = framesPerBurst; in main()
92 printf("Buffer: framesPerBurst = %d\n",framesPerBurst); in main()
/frameworks/av/media/libaaudio/src/client/
DAudioStreamInternal.cpp227 int32_t framesPerHardwareBurst = mEndpointDescriptor.dataQueueDescriptor.framesPerBurst; in configureDataInformation()
232 int32_t framesPerBurst = framesPerHardwareBurst; in configureDataInformation() local
237 framesPerBurst *= 2; in configureDataInformation()
239 burstMicros = framesPerBurst * static_cast<int64_t>(1000000) / getSampleRate(); in configureDataInformation()
242 __func__, framesPerHardwareBurst, burstMinMicros, framesPerBurst); in configureDataInformation()
245 if (framesPerBurst < MIN_FRAMES_PER_BURST || framesPerBurst > MAX_FRAMES_PER_BURST) { in configureDataInformation()
246 ALOGE("%s - framesPerBurst out of range = %d", __func__, framesPerBurst); in configureDataInformation()
249 setFramesPerBurst(framesPerBurst); // only save good value in configureDataInformation()
DIsochronousClockModel.cpp197 void IsochronousClockModel::setFramesPerBurst(int32_t framesPerBurst) { in setFramesPerBurst() argument
198 mFramesPerBurst = framesPerBurst; in setFramesPerBurst()
DIsochronousClockModel.h71 void setFramesPerBurst(int32_t framesPerBurst);
/frameworks/av/media/libaaudio/src/binding/aidl/aaudio/
DRingBuffer.aidl26 int framesPerBurst; // for ISOCHRONOUS queues
/frameworks/av/media/libaaudio/fuzzer/
Dlibaaudio_fuzzer.cpp203 int32_t framesPerBurst = AAudioStream_getFramesPerBurst(mAaudioStream); in process() local
205 int32_t maxFrames = numberOfBursts * framesPerBurst; in process()
207 fdp.ConsumeIntegral<uint16_t>() * framesPerBurst; in process()

12