Lines Matching refs:mBuffer
31 mBuffer[0] = htonl(mCommand); in sendCommand()
32 mBuffer[1] = 0; in sendCommand()
33 return sendData((char*)mBuffer, 8); in sendCommand()
93 mBuffer[0] = htonl(ECmdDownload); in sendCommand()
94 mBuffer[1] = htonl(4 + param.mBuffer->getSize()); in sendCommand()
95 mBuffer[2] = htonl(param.mId); in sendCommand()
96 if(!sendData((char*)mBuffer, 12)) { in sendCommand()
99 return sendData(param.mBuffer->getData(), param.mBuffer->getSize()); in sendCommand()
111 mBuffer[0] = htonl(ECmdStartPlayback); in sendCommand()
112 mBuffer[1] = htonl(20); in sendCommand()
113 mBuffer[2] = htonl(param.mId); in sendCommand()
114 mBuffer[3] = htonl(param.mSamplingF); in sendCommand()
117 mBuffer[4] = htonl(mode); in sendCommand()
118 mBuffer[5] = htonl(param.mVolume); in sendCommand()
119 mBuffer[6] = htonl(param.mNumberRepetition); in sendCommand()
121 return sendData((char*)mBuffer, 28); in sendCommand()
133 mBuffer[0] = htonl(ECmdStartRecording); in sendCommand()
134 mBuffer[1] = htonl(16); in sendCommand()
135 mBuffer[2] = htonl(param.mSamplingF); in sendCommand()
138 mBuffer[3] = htonl(mode); in sendCommand()
139 mBuffer[4] = htonl(param.mVolume); in sendCommand()
140 uint32_t samples = param.mBuffer->getSize() / (param.mStereo ? 4 : 2); in sendCommand()
141 mBuffer[5] = htonl(samples); in sendCommand()
143 return sendData((char*)mBuffer, 24); in sendCommand()
159 if (len > (int)param->mBuffer->getCapacity()) { in handleReply()
160 LOGE("received data %d exceeding buffer capacity %d", len, param->mBuffer->getCapacity()); in handleReply()
166 if (!readData(param->mBuffer->getData(), len)) { in handleReply()
170 param->mBuffer->setHandled(len); in handleReply()
171 param->mBuffer->setSize(len); in handleReply()