Home | History | Annotate | Download | only in audio

Lines Matching refs:mBuffer

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