Home
last modified time | relevance | path

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

/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_various.cpp420 int32_t framesPerBurst = 0; in TEST() local
438 framesPerBurst = AAudioStream_getFramesPerBurst(aaudioStream); in TEST()
441 bufferCapacity, bufferCapacity % framesPerBurst); in TEST()
447 actualSize = AAudioStream_setBufferSizeInFrames(aaudioStream, 2 * framesPerBurst); in TEST()
448 EXPECT_GT(actualSize, framesPerBurst); in TEST()
452 EXPECT_GT(actualSize, framesPerBurst); in TEST()
456 EXPECT_GT(actualSize, framesPerBurst); in TEST()
460 EXPECT_GT(actualSize, framesPerBurst); in TEST()
464 EXPECT_GT(actualSize, framesPerBurst); in TEST()
468 EXPECT_GT(actualSize, framesPerBurst); in TEST()
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_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.cpp119 const size_t framesPerBurst = 32; in TEST() local
135 ringBufferA.setFramesPerBurst(framesPerBurst); in TEST()
/frameworks/av/services/oboeservice/
DAAudioServiceStreamShared.cpp74 int32_t framesPerBurst) { in calculateBufferCapacity() argument
86 if ((DEFAULT_BURSTS_PER_BUFFER * framesPerBurst) > MAX_FRAMES_PER_BUFFER) { in calculateBufferCapacity()
87 numBursts = MAX_FRAMES_PER_BUFFER / framesPerBurst; in calculateBufferCapacity()
93 numBursts = (requestedCapacityFrames + framesPerBurst - 1) / framesPerBurst; in calculateBufferCapacity()
101 if (numBursts > 0x8000 || framesPerBurst > 0x8000) { in calculateBufferCapacity()
103 numBursts, framesPerBurst); in calculateBufferCapacity()
106 int32_t capacityInFrames = numBursts * framesPerBurst; in calculateBufferCapacity()
DAAudioMixer.cpp40 void AAudioMixer::allocate(int32_t samplesPerFrame, int32_t framesPerBurst) { in allocate() argument
42 mFramesPerBurst = framesPerBurst; in allocate()
43 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.h30 void allocate(int32_t samplesPerFrame, int32_t framesPerBurst);
DAAudioServiceStreamShared.h106 int32_t framesPerBurst);
/frameworks/av/media/libaaudio/examples/utils/
DAAudioArgsParser.h464 int32_t framesPerBurst = AAudioStream_getFramesPerBurst(stream); in compareWithStream() local
465 printf(" Buffer: burst = %d\n", framesPerBurst); in compareWithStream()
468 if (framesPerBurst > 0) { in compareWithStream()
469 int32_t requestedSize = getNumberOfBursts() * framesPerBurst; in compareWithStream()
473 (sizeFrames / framesPerBurst), in compareWithStream()
474 framesPerBurst, in compareWithStream()
475 (sizeFrames % framesPerBurst)); in compareWithStream()
484 (capacityFrames / framesPerBurst), in compareWithStream()
485 framesPerBurst, in compareWithStream()
486 (capacityFrames % framesPerBurst)); in compareWithStream()
DAAudioSimpleRecorder.h132 int32_t framesPerBurst = AAudioStream_getFramesPerBurst(mStream); variable
133 AAudioStream_setBufferSizeInFrames(mStream, sizeInBursts * framesPerBurst);
DAAudioSimplePlayer.h123 int32_t framesPerBurst = AAudioStream_getFramesPerBurst(mStream); variable
124 int32_t bufferSizeFrames = sizeInBursts * framesPerBurst;
/frameworks/av/media/libaaudio/examples/write_sine/src/
Dwrite_sine.cpp45 int32_t framesPerBurst = 0; in main() local
85 framesPerBurst = AAudioStream_getFramesPerBurst(aaudioStream); in main()
86 framesPerWrite = framesPerBurst; in main()
90 printf("Buffer: framesPerBurst = %d\n",framesPerBurst); in main()
/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/src/client/
DAudioStreamInternal.cpp78 int32_t framesPerBurst; in open() local
180 framesPerHardwareBurst = mEndpointDescriptor.dataQueueDescriptor.framesPerBurst; in open()
185 framesPerBurst = framesPerHardwareBurst; in open()
188 framesPerBurst *= 2; in open()
190 burstMicros = framesPerBurst * static_cast<int64_t>(1000000) / getSampleRate(); in open()
193 __func__, framesPerHardwareBurst, burstMinMicros, framesPerBurst); in open()
196 if (framesPerBurst < MIN_FRAMES_PER_BURST || framesPerBurst > MAX_FRAMES_PER_BURST) { in open()
197 ALOGE("%s - framesPerBurst out of range = %d", __func__, framesPerBurst); in open()
201 mFramesPerBurst = framesPerBurst; // only save good value in open()
DIsochronousClockModel.cpp136 void IsochronousClockModel::setFramesPerBurst(int32_t framesPerBurst) { in setFramesPerBurst() argument
137 mFramesPerBurst = framesPerBurst; in setFramesPerBurst()
DIsochronousClockModel.h67 void setFramesPerBurst(int32_t framesPerBurst);
DAudioEndpoint.cpp157 ALOGV("configure() data framesPerBurst = %d", descriptor->framesPerBurst); in configure()
/frameworks/av/media/libaaudio/src/binding/
DRingBufferParcelable.cpp67 void RingBufferParcelable::setFramesPerBurst(int32_t framesPerBurst) { in setFramesPerBurst() argument
68 mFramesPerBurst = framesPerBurst; in setFramesPerBurst()
152 descriptor->framesPerBurst = mFramesPerBurst; in resolve()
DAAudioServiceDefinitions.h74 int32_t framesPerBurst; // for ISOCHRONOUS queues member
DRingBufferParcelable.h52 void setFramesPerBurst(int32_t framesPerBurst);