Lines Matching refs:buffer
129 android::sp<Buffer>* buffer = reinterpret_cast<android::sp<Buffer>*>(inputs[i]); in run() local
130 mBuffer.write<int32_t>((int32_t)((*buffer)->isStereo() ? EAudioStereo : EAudioMono)); in run()
131 int dataLen = (*buffer)->getSize(); in run()
137 if (!send((*buffer)->getData(), dataLen)) { in run()
141 LOGD("%d-th param buffer %d, stereo:%d", i, dataLen, (*buffer)->isStereo()); in run()
191 android::sp<Buffer>* buffer = reinterpret_cast<android::sp<Buffer>*>(outputs[i]); in run() local
192 … if (buffer->get() == NULL) { // data not allocated, this can happen for unknown-length output in run()
193 *buffer = new Buffer(dataLen, dataLen, (type == EAudioStereo) ? true: false); in run()
194 if (buffer->get() == NULL) { in run()
199 bool isStereo = (*buffer)->isStereo(); in run()
208 if (dataLen > (int)(*buffer)->getSize()) { in run()
210 (*buffer)->getSize()); in run()
213 if (!read((*buffer)->getData(), dataLen)) { in run()
217 LOGD("received buffer %x %x", ((*buffer)->getData())[0], ((*buffer)->getData())[1]); in run()
218 (*buffer)->setHandled(dataLen); in run()
219 (*buffer)->setSize(dataLen); in run()