Home
last modified time | relevance | path

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

/frameworks/av/media/libaaudio/src/client/
DAudioEndpoint.cpp57 if (descriptor->bytesPerFrame < 1 in AudioEndpoint_validateQueueDescriptor()
58 || descriptor->bytesPerFrame > RIDICULOUSLY_LARGE_FRAME_SIZE) { in AudioEndpoint_validateQueueDescriptor()
60 descriptor->bytesPerFrame); in AudioEndpoint_validateQueueDescriptor()
123 if(descriptor->bytesPerFrame != sizeof(AAudioServiceMessage)) { in configure()
125 descriptor->bytesPerFrame); in configure()
141 descriptor->bytesPerFrame, in configure()
170 descriptor->bytesPerFrame, in configure()
/frameworks/av/media/libaaudio/src/fifo/
DFifoBuffer.cpp36 FifoBuffer::FifoBuffer(int32_t bytesPerFrame, fifo_frames_t capacityInFrames) in FifoBuffer() argument
37 : mBytesPerFrame(bytesPerFrame) in FifoBuffer()
41 int32_t bytesPerBuffer = bytesPerFrame * capacityInFrames; in FifoBuffer()
45 __func__, capacityInFrames, bytesPerFrame); in FifoBuffer()
48 FifoBuffer::FifoBuffer( int32_t bytesPerFrame, in FifoBuffer() argument
54 : mBytesPerFrame(bytesPerFrame) in FifoBuffer()
DFifoBuffer.h41 FifoBuffer(int32_t bytesPerFrame, fifo_frames_t capacityInFrames);
43 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.cpp374 int32_t bytesPerFrame = calculateBytesPerFrame(); in getDownDataDescription() local
375 int32_t capacityInBytes = getBufferCapacity() * bytesPerFrame; in getDownDataDescription()
378 parcelable.mDownDataQueueParcelable.setBytesPerFrame(bytesPerFrame); in getDownDataDescription()
/frameworks/av/media/libaaudio/src/utility/
DAAudioUtilities.cpp247 int32_t bytesPerFrame, in AAudioConvert_framesToBytes() argument
251 if (numFrames < 0 || bytesPerFrame < 0) { in AAudioConvert_framesToBytes()
252 ALOGE("negative size, numFrames = %d, frameSize = %d", numFrames, bytesPerFrame); in AAudioConvert_framesToBytes()
257 if (numFrames > (INT32_MAX / bytesPerFrame)) { in AAudioConvert_framesToBytes()
258 ALOGE("size overflow, numFrames = %d, frameSize = %d", numFrames, bytesPerFrame); in AAudioConvert_framesToBytes()
262 *sizeInBytes = numFrames * bytesPerFrame; in AAudioConvert_framesToBytes()
DAAudioUtilities.h57 int32_t bytesPerFrame,
/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/legacy/
DAudioStreamTrack.cpp418 int32_t bytesPerFrame = getBytesPerFrame(); in write() local
420 aaudio_result_t result = AAudioConvert_framesToBytes(numFrames, bytesPerFrame, &numBytes); in write()
444 int32_t framesWritten = (int32_t)(bytesWritten / bytesPerFrame); in write()
/frameworks/av/media/extractors/wav/
DWAVExtractor.cpp510 const size_t bytesPerFrame = (mBitsPerSample >> 3) * mNumChannels; in read() local
511 const size_t numFrames = n / bytesPerFrame; in read()