Loading media/libaaudio/src/fifo/FifoControllerBase.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -38,7 +38,7 @@ fifo_frames_t FifoControllerBase::getFullFramesAvailable() { fifo_frames_t FifoControllerBase::getReadIndex() { fifo_frames_t FifoControllerBase::getReadIndex() { // % works with non-power of two sizes // % works with non-power of two sizes return (fifo_frames_t) (getReadCounter() % mCapacity); return (fifo_frames_t) ((uint64_t)getReadCounter() % mCapacity); } } void FifoControllerBase::advanceReadIndex(fifo_frames_t numFrames) { void FifoControllerBase::advanceReadIndex(fifo_frames_t numFrames) { Loading @@ -51,7 +51,7 @@ fifo_frames_t FifoControllerBase::getEmptyFramesAvailable() { fifo_frames_t FifoControllerBase::getWriteIndex() { fifo_frames_t FifoControllerBase::getWriteIndex() { // % works with non-power of two sizes // % works with non-power of two sizes return (fifo_frames_t) (getWriteCounter() % mCapacity); return (fifo_frames_t) ((uint64_t)getWriteCounter() % mCapacity); } } void FifoControllerBase::advanceWriteIndex(fifo_frames_t numFrames) { void FifoControllerBase::advanceWriteIndex(fifo_frames_t numFrames) { Loading Loading
media/libaaudio/src/fifo/FifoControllerBase.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -38,7 +38,7 @@ fifo_frames_t FifoControllerBase::getFullFramesAvailable() { fifo_frames_t FifoControllerBase::getReadIndex() { fifo_frames_t FifoControllerBase::getReadIndex() { // % works with non-power of two sizes // % works with non-power of two sizes return (fifo_frames_t) (getReadCounter() % mCapacity); return (fifo_frames_t) ((uint64_t)getReadCounter() % mCapacity); } } void FifoControllerBase::advanceReadIndex(fifo_frames_t numFrames) { void FifoControllerBase::advanceReadIndex(fifo_frames_t numFrames) { Loading @@ -51,7 +51,7 @@ fifo_frames_t FifoControllerBase::getEmptyFramesAvailable() { fifo_frames_t FifoControllerBase::getWriteIndex() { fifo_frames_t FifoControllerBase::getWriteIndex() { // % works with non-power of two sizes // % works with non-power of two sizes return (fifo_frames_t) (getWriteCounter() % mCapacity); return (fifo_frames_t) ((uint64_t)getWriteCounter() % mCapacity); } } void FifoControllerBase::advanceWriteIndex(fifo_frames_t numFrames) { void FifoControllerBase::advanceWriteIndex(fifo_frames_t numFrames) { Loading