Lines Matching refs:bytes
279 ssize_t AudioStreamOutDump::write(const void* buffer, size_t bytes) in write() argument
284 ret = mFinalStream->write(buffer, bytes); in write()
286 usleep((((bytes * 1000) / frameSize()) / sampleRate()) * 1000); in write()
287 ret = bytes; in write()
298 fwrite(buffer, bytes, 1, mFile); in write()
439 ssize_t AudioStreamInDump::read(void* buffer, ssize_t bytes) in read() argument
444 ret = mFinalStream->read(buffer, bytes); in read()
454 fwrite(buffer, bytes, 1, mFile); in read()
457 usleep((((bytes * 1000) / frameSize()) / sampleRate()) * 1000); in read()
458 ret = bytes; in read()
489 ssize_t bytesRead = fread(buffer, bytes, 1, mFile); in read()
490 if (bytesRead >=0 && bytesRead < bytes) { in read()
492 fread((uint8_t *)buffer+bytesRead, bytes-bytesRead, 1, mFile); in read()