Home
last modified time | relevance | path

Searched refs:nbytes (Results 1 – 5 of 5) sorted by relevance

/frameworks/wilhelm/tests/sandbox/
Dplaybq.cpp97 SLuint32 nbytes = count * sfinfo.channels * sizeof(short); in callback() local
99 swab(buffer, buffer, nbytes); in callback()
102 squeeze(buffer, (unsigned char *) buffer, nbytes); in callback()
103 nbytes /= 2; in callback()
105 SLresult result = (*bufq)->Enqueue(bufq, buffer, nbytes); in callback()
439 SLuint32 nbytes = count * sfinfo.channels * sizeof(short); in main() local
441 swab(buffer, buffer, nbytes); in main()
444 squeeze(buffer, (unsigned char *) buffer, nbytes); in main()
445 nbytes /= 2; in main()
447 result = (*playerBufferQueue)->Enqueue(playerBufferQueue, buffer, nbytes); in main()
Dplaybq.c97 SLuint32 nbytes = count * sfinfo.channels * sizeof(short); in callback() local
99 swab(buffer, buffer, nbytes); in callback()
102 squeeze(buffer, (unsigned char *) buffer, nbytes); in callback()
103 nbytes /= 2; in callback()
105 SLresult result = (*bufq)->Enqueue(bufq, buffer, nbytes); in callback()
439 SLuint32 nbytes = count * sfinfo.channels * sizeof(short); in main() local
441 swab(buffer, buffer, nbytes); in main()
444 squeeze(buffer, (unsigned char *) buffer, nbytes); in main()
445 nbytes /= 2; in main()
447 result = (*playerBufferQueue)->Enqueue(playerBufferQueue, buffer, nbytes); in main()
/frameworks/base/core/java/android/speech/srec/
DRecognizer.java308 int nbytes = audio.read(mPutAudioBuffer); in putAudio() local
310 if (nbytes == -1) { in putAudio()
314 else if (nbytes != SR_RecognizerPutAudio(mRecognizer, mPutAudioBuffer, 0, nbytes, false)) { in putAudio()
315 throw new IOException("SR_RecognizerPutAudio failed nbytes=" + nbytes); in putAudio()
/frameworks/av/media/libstagefright/rtsp/
DARTPConnection.cpp384 ssize_t nbytes; in receive() local
386 nbytes = recvfrom( in receive()
393 } while (nbytes < 0 && errno == EINTR); in receive()
395 if (nbytes <= 0) { in receive()
399 buffer->setRange(0, nbytes); in receive()
/frameworks/av/cmds/stagefright/
DSimplePlayer.cpp629 ssize_t nbytes = state->mAudioTrack->write( in renderAudio() local
632 CHECK_EQ(nbytes, (ssize_t)copy); in renderAudio()
636 uint32_t numFramesWritten = nbytes / state->mAudioTrack->frameSize(); in renderAudio()
644 info->mOffset += nbytes; in renderAudio()
645 info->mSize -= nbytes; in renderAudio()