Home
last modified time | relevance | path

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

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