Searched refs:fifo (Results 1 – 4 of 4) sorted by relevance
/system/media/audio_utils/ |
D | fifo.c | 27 void audio_utils_fifo_init(struct audio_utils_fifo *fifo, size_t frameCount, size_t frameSize, in audio_utils_fifo_init() argument 31 ALOG_ASSERT(fifo != NULL && frameCount > 0 && frameSize > 0 && buffer != NULL); in audio_utils_fifo_init() 32 fifo->mFrameCount = frameCount; in audio_utils_fifo_init() 33 fifo->mFrameCountP2 = roundup(frameCount); in audio_utils_fifo_init() 34 fifo->mFudgeFactor = fifo->mFrameCountP2 - fifo->mFrameCount; in audio_utils_fifo_init() 35 fifo->mFrameSize = frameSize; in audio_utils_fifo_init() 36 fifo->mBuffer = buffer; in audio_utils_fifo_init() 37 fifo->mFront = 0; in audio_utils_fifo_init() 38 fifo->mRear = 0; in audio_utils_fifo_init() 41 void audio_utils_fifo_deinit(struct audio_utils_fifo *fifo __unused) in audio_utils_fifo_deinit() [all …]
|
D | Android.mk | 10 fifo.c \ 36 fifo.c \ 82 fifo.c \
|
/system/media/audio_utils/include/audio_utils/ |
D | fifo.h | 54 void audio_utils_fifo_init(struct audio_utils_fifo *fifo, size_t frameCount, size_t frameSize, 60 void audio_utils_fifo_deinit(struct audio_utils_fifo *fifo); 70 ssize_t audio_utils_fifo_write(struct audio_utils_fifo *fifo, const void *buffer, size_t count); 80 ssize_t audio_utils_fifo_read(struct audio_utils_fifo *fifo, void *buffer, size_t count);
|
/system/media/audio_utils/tests/ |
D | fifo_tests.cpp | 90 struct audio_utils_fifo fifo; in main() local 92 audio_utils_fifo_init(&fifo, frameCount, frameSize, fifoBuffer); in main() 106 ssize_t actualWritten = audio_utils_fifo_write(&fifo, in main() 127 ssize_t actualRead = audio_utils_fifo_read(&fifo, in main() 146 audio_utils_fifo_deinit(&fifo); in main()
|