Searched refs:bytesPerFrame (Results 1 - 14 of 14) sorted by relevance

/frameworks/av/services/oboeservice/
H A DSharedRingBuffer.cpp40 aaudio_result_t SharedRingBuffer::allocate(fifo_frames_t bytesPerFrame, argument
45 mDataMemorySizeInBytes = bytesPerFrame * capacityInFrames;
79 mFifoBuffer = new FifoBuffer(bytesPerFrame, capacityInFrames,
H A DSharedRingBuffer.h45 aaudio_result_t allocate(android::fifo_frames_t bytesPerFrame, android::fifo_frames_t capacityInFrames);
H A DAAudioServiceEndpointMMAP.cpp399 int32_t bytesPerFrame = calculateBytesPerFrame(); local
400 int32_t capacityInBytes = getBufferCapacity() * bytesPerFrame;
403 parcelable.mDownDataQueueParcelable.setBytesPerFrame(bytesPerFrame);
/frameworks/av/media/libaaudio/src/fifo/
H A DFifoBuffer.h40 FifoBuffer(int32_t bytesPerFrame, fifo_frames_t capacityInFrames);
42 FifoBuffer(int32_t bytesPerFrame,
H A DFifoBuffer.cpp34 FifoBuffer::FifoBuffer(int32_t bytesPerFrame, fifo_frames_t capacityInFrames) argument
36 , mBytesPerFrame(bytesPerFrame)
45 int32_t bytesPerBuffer = bytesPerFrame * capacityInFrames;
48 ALOGV("capacityInFrames = %d, bytesPerFrame = %d",
49 capacityInFrames, bytesPerFrame);
52 FifoBuffer::FifoBuffer( int32_t bytesPerFrame, argument
59 , mBytesPerFrame(bytesPerFrame)
/frameworks/av/media/libaaudio/src/client/
H A DAudioEndpoint.cpp64 if (descriptor->bytesPerFrame < 1
65 || descriptor->bytesPerFrame > RIDICULOUSLY_LARGE_FRAME_SIZE) {
66 ALOGE("AudioEndpoint_validateQueueDescriptor() bad bytesPerFrame = %d",
67 descriptor->bytesPerFrame);
130 if(descriptor->bytesPerFrame != sizeof(AAudioServiceMessage)) {
131 ALOGE("configure() bytesPerFrame != sizeof(AAudioServiceMessage) = %d",
132 descriptor->bytesPerFrame);
148 descriptor->bytesPerFrame,
177 descriptor->bytesPerFrame,
H A DAudioStreamInternal.cpp215 int32_t bytesPerFrame = getSamplesPerFrame() local
217 int32_t callbackBufferSize = mCallbackFrames * bytesPerFrame;
/frameworks/av/media/libaaudio/src/binding/
H A DRingBufferParcelable.cpp59 void RingBufferParcelable::setBytesPerFrame(int32_t bytesPerFrame) { argument
60 mBytesPerFrame = bytesPerFrame;
151 descriptor->bytesPerFrame = mBytesPerFrame;
H A DAAudioServiceDefinitions.h73 int32_t bytesPerFrame; // index is in frames member in struct:aaudio::RingBufferDescriptor_s
H A DRingBufferParcelable.h48 void setBytesPerFrame(int32_t bytesPerFrame);
/frameworks/av/media/libaaudio/tests/
H A Dtest_marshalling.cpp118 const size_t bytesPerFrame = 8; local
136 ringBufferA.setBytesPerFrame(bytesPerFrame);
137 ringBufferA.setCapacityInFrames(dataSizeBytes / bytesPerFrame);
/frameworks/av/media/libaaudio/src/utility/
H A DAAudioUtilities.cpp603 int32_t bytesPerFrame,
607 if (numFrames < 0 || bytesPerFrame < 0) {
608 ALOGE("negative size, numFrames = %d, frameSize = %d", numFrames, bytesPerFrame);
613 if (numFrames > (INT32_MAX / bytesPerFrame)) {
614 ALOGE("size overflow, numFrames = %d, frameSize = %d", numFrames, bytesPerFrame);
618 *sizeInBytes = numFrames * bytesPerFrame;
602 AAudioConvert_framesToBytes(int32_t numFrames, int32_t bytesPerFrame, int32_t *sizeInBytes) argument
H A DAAudioUtilities.h202 * @param bytesPerFrame size of a frame in bytes
207 int32_t bytesPerFrame,
/frameworks/av/media/libaaudio/src/legacy/
H A DAudioStreamTrack.cpp383 int32_t bytesPerFrame = getBytesPerFrame(); local
385 aaudio_result_t result = AAudioConvert_framesToBytes(numFrames, bytesPerFrame, &numBytes);
409 int32_t framesWritten = (int32_t)(bytesWritten / bytesPerFrame);

Completed in 475 milliseconds