Lines Matching refs:ret
54 NBAIO_Format ret;
55 ret.mSampleRate = sampleRate;
56 ret.mChannelCount = channelCount;
57 ret.mFormat = format;
58 ret.mFrameSize = audio_is_linear_pcm(format) ?
60 return ret;
83 ssize_t ret = via(user, buffer, count);
84 if (ret > 0) {
85 ALOG_ASSERT((size_t) ret <= count);
86 size_t maxRet = ret;
87 ret = write(buffer, maxRet);
88 if (ret > 0) {
89 ALOG_ASSERT((size_t) ret <= maxRet);
90 accumulator += ret;
94 return accumulator > 0 ? accumulator : ret;
120 ssize_t ret = read(buffer, count, readPTS);
121 if (ret > 0) {
122 ALOG_ASSERT((size_t) ret <= count);
123 size_t maxRet = ret;
124 ret = via(user, buffer, maxRet, readPTS);
125 if (ret > 0) {
126 ALOG_ASSERT((size_t) ret <= maxRet);
127 accumulator += ret;
131 return accumulator > 0 ? accumulator : ret;