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.java59 int numberOfShorts = mMaxValues + extraShort; in PipeByteBuffer()
74 rear = mByteBuffer.getInt(mMaxValues * Constant.BYTES_PER_SHORT); in read()
92 int front = mFront & (mMaxValues - 1); in read()
93 int read = mMaxValues - front; // total samples from currentIndex until the end of array in read()
101 if (front + read == mMaxValues) { in read()
130 if (avail > mMaxValues) { in availableToRead()
133 mFront = rear - mMaxValues + (mMaxValues >> 5); in availableToRead()
148 rear = mByteBuffer.getInt(mMaxValues * Constant.BYTES_PER_SHORT); in availableToRead()
166 mByteBuffer.putInt(mMaxValues * Constant.BYTES_PER_SHORT, 0); in flush()
DPipe.java29 protected final int mMaxValues; // always a power of two field in Pipe
33 mMaxValues = Utilities.roundup(maxSamples); // round up to the nearest power of 2 in Pipe()