/frameworks/av/services/oboeservice/ |
H A D | SharedRingBuffer.cpp | 40 aaudio_result_t SharedRingBuffer::allocate(fifo_frames_t bytesPerFrame, argument 45 mDataMemorySizeInBytes = bytesPerFrame * capacityInFrames; 79 mFifoBuffer = new FifoBuffer(bytesPerFrame, capacityInFrames,
|
H A D | SharedRingBuffer.h | 45 aaudio_result_t allocate(android::fifo_frames_t bytesPerFrame, android::fifo_frames_t capacityInFrames);
|
H A D | AAudioServiceEndpointMMAP.cpp | 399 int32_t bytesPerFrame = calculateBytesPerFrame(); local 400 int32_t capacityInBytes = getBufferCapacity() * bytesPerFrame; 403 parcelable.mDownDataQueueParcelable.setBytesPerFrame(bytesPerFrame);
|
/frameworks/av/media/libaaudio/src/fifo/ |
H A D | FifoBuffer.h | 40 FifoBuffer(int32_t bytesPerFrame, fifo_frames_t capacityInFrames); 42 FifoBuffer(int32_t bytesPerFrame,
|
H A D | FifoBuffer.cpp | 34 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 D | AudioEndpoint.cpp | 64 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 D | AudioStreamInternal.cpp | 215 int32_t bytesPerFrame = getSamplesPerFrame() local 217 int32_t callbackBufferSize = mCallbackFrames * bytesPerFrame;
|
/frameworks/av/media/libaaudio/src/binding/ |
H A D | RingBufferParcelable.cpp | 59 void RingBufferParcelable::setBytesPerFrame(int32_t bytesPerFrame) { argument 60 mBytesPerFrame = bytesPerFrame; 151 descriptor->bytesPerFrame = mBytesPerFrame;
|
H A D | AAudioServiceDefinitions.h | 73 int32_t bytesPerFrame; // index is in frames member in struct:aaudio::RingBufferDescriptor_s
|
H A D | RingBufferParcelable.h | 48 void setBytesPerFrame(int32_t bytesPerFrame);
|
/frameworks/av/media/libaaudio/tests/ |
H A D | test_marshalling.cpp | 118 const size_t bytesPerFrame = 8; local 136 ringBufferA.setBytesPerFrame(bytesPerFrame); 137 ringBufferA.setCapacityInFrames(dataSizeBytes / bytesPerFrame);
|
/frameworks/av/media/libaaudio/src/utility/ |
H A D | AAudioUtilities.cpp | 603 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 D | AAudioUtilities.h | 202 * @param bytesPerFrame size of a frame in bytes 207 int32_t bytesPerFrame,
|
/frameworks/av/media/libaaudio/src/legacy/ |
H A D | AudioStreamTrack.cpp | 383 int32_t bytesPerFrame = getBytesPerFrame(); local 385 aaudio_result_t result = AAudioConvert_framesToBytes(numFrames, bytesPerFrame, &numBytes); 409 int32_t framesWritten = (int32_t)(bytesWritten / bytesPerFrame);
|