Home
last modified time | relevance | path

Searched refs:mMaxValues (Results 1 – 3 of 3) sorted by relevance

/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DPipeShort.java40 mBuffer = new short[mMaxValues]; in PipeShort()
52 int rear = mRear & (mMaxValues - 1); in write()
53 int written = mMaxValues - rear; in write()
59 if (rear + written == mMaxValues) { in write()
89 int front = mFront & (mMaxValues - 1); in read()
90 int read = mMaxValues - front; in read()
99 if (front + read == mMaxValues) { in read()
120 if (avail > mMaxValues) { in availableToRead()
123 mFront = rear - mMaxValues + (mMaxValues >> 4); in availableToRead()
DPipeByteBuffer.java58 int numberOfShorts = mMaxValues + extraShort; in PipeByteBuffer()
73 rear = mByteBuffer.getInt(mMaxValues * Constant.BYTES_PER_SHORT); in read()
91 int front = mFront & (mMaxValues - 1); in read()
92 int read = mMaxValues - front; // total samples from currentIndex until the end of array in read()
100 if (front + read == mMaxValues) { in read()
129 if (avail > mMaxValues) { in availableToRead()
132 mFront = rear - mMaxValues + (mMaxValues >> 5); in availableToRead()
147 rear = mByteBuffer.getInt(mMaxValues * Constant.BYTES_PER_SHORT); in availableToRead()
165 mByteBuffer.putInt(mMaxValues * Constant.BYTES_PER_SHORT, 0); in flush()
DPipe.java29 protected final int mMaxValues; // always in power of two field in Pipe
34 mMaxValues = Utilities.roundup(maxSamples); // round up to the nearest power of 2 in Pipe()