Searched refs:bytesPerFrame (Results 1 - 15 of 15) sorted by path

/frameworks/av/media/libaaudio/src/binding/
H A DAAudioServiceDefinitions.h68 int32_t bytesPerFrame; // index is in frames member in struct:aaudio::RingBufferDescriptor_s
H A DRingBufferParcelable.cpp58 void RingBufferParcelable::setBytesPerFrame(int32_t bytesPerFrame) { argument
59 mBytesPerFrame = bytesPerFrame;
147 descriptor->bytesPerFrame = mBytesPerFrame;
H A DRingBufferParcelable.h48 void setBytesPerFrame(int32_t bytesPerFrame);
/frameworks/av/media/libaaudio/src/client/
H A DAudioEndpoint.cpp60 if (descriptor->bytesPerFrame < 1
61 || descriptor->bytesPerFrame > RIDICULOUSLY_LARGE_FRAME_SIZE) {
62 ALOGE("AudioEndpoint_validateQueueDescriptor() bad bytesPerFrame = %d",
63 descriptor->bytesPerFrame);
127 if(descriptor->bytesPerFrame != sizeof(AAudioServiceMessage)) {
128 ALOGE("AudioEndpoint::configure() bytesPerFrame != sizeof(AAudioServiceMessage) = %d",
129 descriptor->bytesPerFrame);
139 descriptor->bytesPerFrame,
160 descriptor->bytesPerFrame,
H A DAudioStreamInternal.cpp171 int32_t bytesPerFrame = getSamplesPerFrame() local
173 int32_t callbackBufferSize = mCallbackFrames * bytesPerFrame;
/frameworks/av/media/libaaudio/src/fifo/
H A DFifoBuffer.cpp32 FifoBuffer::FifoBuffer(int32_t bytesPerFrame, fifo_frames_t capacityInFrames) argument
34 , mBytesPerFrame(bytesPerFrame)
43 int32_t bytesPerBuffer = bytesPerFrame * capacityInFrames;
46 ALOGD("FifoBuffer: capacityInFrames = %d, bytesPerFrame = %d",
47 capacityInFrames, bytesPerFrame);
50 FifoBuffer::FifoBuffer( int32_t bytesPerFrame, argument
57 , mBytesPerFrame(bytesPerFrame)
H A DFifoBuffer.h40 FifoBuffer(int32_t bytesPerFrame, fifo_frames_t capacityInFrames);
42 FifoBuffer(int32_t bytesPerFrame,
/frameworks/av/media/libaaudio/src/legacy/
H A DAudioStreamRecord.cpp280 int32_t bytesPerFrame = getBytesPerFrame(); local
282 aaudio_result_t result = AAudioConvert_framesToBytes(numFrames, bytesPerFrame, &numBytes);
305 int32_t framesRead = (int32_t)(bytesRead / bytesPerFrame);
H A DAudioStreamTrack.cpp348 int32_t bytesPerFrame = getBytesPerFrame(); local
350 aaudio_result_t result = AAudioConvert_framesToBytes(numFrames, bytesPerFrame, &numBytes);
374 int32_t framesWritten = (int32_t)(bytesWritten / bytesPerFrame);
/frameworks/av/media/libaaudio/src/utility/
H A DAAudioUtilities.cpp311 int32_t bytesPerFrame,
317 if (bytesPerFrame > maxBytesPerFrame || numFrames > (0x3FFFFFFF / maxBytesPerFrame)) {
318 ALOGE("size overflow, numFrames = %d, frameSize = %zd", numFrames, bytesPerFrame);
321 *sizeInBytes = numFrames * bytesPerFrame;
310 AAudioConvert_framesToBytes(int32_t numFrames, int32_t bytesPerFrame, int32_t *sizeInBytes) argument
H A DAAudioUtilities.h156 * @param bytesPerFrame size of a frame in bytes
161 int32_t bytesPerFrame,
/frameworks/av/media/libaaudio/tests/
H A Dtest_marshalling.cpp116 const size_t bytesPerFrame = 8; local
134 ringBufferA.setBytesPerFrame(bytesPerFrame);
135 ringBufferA.setCapacityInFrames(dataSizeBytes / bytesPerFrame);
/frameworks/av/services/oboeservice/
H A DAAudioServiceStreamMMAP.cpp290 int32_t bytesPerFrame = calculateBytesPerFrame(); local
291 int32_t capacityInBytes = mCapacityInFrames * bytesPerFrame;
294 parcelable.mDownDataQueueParcelable.setBytesPerFrame(bytesPerFrame);
H A DSharedRingBuffer.cpp45 aaudio_result_t SharedRingBuffer::allocate(fifo_frames_t bytesPerFrame, argument
50 mDataMemorySizeInBytes = bytesPerFrame * capacityInFrames;
84 mFifoBuffer = new FifoBuffer(bytesPerFrame, capacityInFrames,
H A DSharedRingBuffer.h44 aaudio_result_t allocate(android::fifo_frames_t bytesPerFrame, android::fifo_frames_t capacityInFrames);

Completed in 128 milliseconds