Searched refs:count (Results 101 - 115 of 115) sorted by last modified time

12345

/system/media/wilhelm/src/desktop/
H A DSndFile.c46 sf_count_t count; local
47 count = sf_read_short(thiz->mSNDFILE, pBuffer, (sf_count_t) SndFile_BUFSIZE);
75 if (0 < count) {
77 SLuint32 size = (SLuint32) (count * sizeof(short));
194 SLboolean empty = 0 == audioPlayer->mBufferQueue.mState.count;
/system/media/wilhelm/src/
H A Dentry.c89 // if an engine already exists, then increment its ref count
188 SLuint32 count = 0; local
197 ++count;
206 *pNumSupportedInterfaces = count;
/system/media/wilhelm/src/itf/
H A DIAndroidBufferQueue.c274 thiz->mState.count = 0;
389 ++thiz->mState.count;
396 (1 == thiz->mState.count) && (SL_PLAYSTATE_PLAYING == getAssociatedState(thiz))) ?
418 pState->count = thiz->mState.count;
486 thiz->mState.count = 0;
H A DIBufferQueue.c68 ++thiz->mState.count;
73 (1 == thiz->mState.count) && (SL_PLAYSTATE_PLAYING == getAssociatedState(thiz))) ?
96 thiz->mState.count = 0;
131 state.count = thiz->mState.count;
177 thiz->mState.count = 0;
H A DIEngine.c305 // copy the buffer queue count from source locator (for playback) / from the
466 // always PCM buffer queue, so we know the channel count and sample rate early.
805 SLuint32 count = 0; local
814 ++count;
823 *pNumSupportedInterfaces = count;
H A DIMetadataTraversal.c55 SLuint32 count = thiz->mCount; local
57 *pCount = count;
H A DIOutputMixExt.c75 audioPlayer->mBufferQueue.mState.count = 0;
110 assert(0 < audioPlayer->mBufferQueue.mState.count);
137 assert(0 < audioPlayer->mBufferQueue.mState.count);
285 assert(0 < bufferQueue->mState.count);
286 --bufferQueue->mState.count;
290 assert(0 < bufferQueue->mState.count);
/system/media/wilhelm/tests/automated/
H A DBufferQueue_test.cpp209 ASSERT_EQ((SLuint32) 0, bufferqueueState.count);
219 // verify that each buffer is enqueued properly and increments the buffer count
222 ASSERT_EQ(j + 1, bufferqueueState.count);
231 // verify that the failed enqueue did not affect the buffer count
234 ASSERT_EQ(numBuffers, bufferqueueState.count);
258 ASSERT_EQ((SLuint32) 0, bufferqueueState.count);
263 // changing the play state should not affect the buffer count
266 ASSERT_EQ(ExpectedCount, bufferqueueState.count);
285 ASSERT_EQ((SLuint32) 1, bufferqueueState.count);
299 ASSERT_EQ((SLuint32) 0, bufferqueueState.count);
[all...]
/system/media/wilhelm/tests/examples/
H A DslesTestDecodeToBuffQueue.cpp212 "count=%u playIndex=%u\n",
213 pCntxt->pData, decQueueState.count, decQueueState.index);
255 fprintf(stdout, " channel count = %d\n", *((SLuint32*)pcmMetaData->data));
H A DslesTestSawtoothBufferQueue.cpp251 played. This is indicated by waiting for the count member of the
258 while (state.count) {
/system/media/wilhelm/tests/sandbox/
H A Dconfigbq.c203 if (state.count == 0)
H A Dintbufq.c171 unsigned count = 0; local
182 count = count * 10 + (ch - '0');
184 count = ch - '0';
203 expectedContext = (void *) count;
216 for (i = 0; i < (in_count ? count : 1); ++i) {
227 if (bufqstate.count != 0)
228 printf("\rcount=%u\r\n", (unsigned) bufqstate.count);
239 printf("count=%u\r\n", (unsigned) bufqstate.count);
[all...]
H A Dplaybq.c77 sf_count_t count; local
78 count = sf_readf_short(sndfile, buffer, (sf_count_t) framesPerBuffer);
79 if (0 >= count) {
82 SLuint32 nbytes = count * sfinfo.channels * sizeof(short);
164 fprintf(stderr, "unsupported channel count %d\n", sfinfo.channels);
320 sf_count_t count; local
321 count = sf_readf_short(sndfile, buffer, frames);
322 if (0 >= count) {
328 SLuint32 nbytes = count * sfinfo.channels * sizeof(short);
355 if (0 >= bufqstate.count) {
[all...]
H A Dreverb.c322 SLuint32 count = 0; local
324 mix_req[count] = SL_BOOLEAN_TRUE;
325 mix_ids[count++] = SL_IID_PRESETREVERB;
328 mix_req[count] = SL_BOOLEAN_TRUE;
329 mix_ids[count++] = SL_IID_ENVIRONMENTALREVERB;
332 result = (*engineEngine)->CreateOutputMix(engineEngine, &mixObject, count, mix_ids, mix_req);
409 count = 0;
411 player_req[count] = SL_BOOLEAN_TRUE;
412 player_ids[count++] = SL_IID_PRESETREVERB;
415 player_req[count]
[all...]
/system/media/wilhelm/tools/permute/
H A Dpermute.c243 sf_count_t count; local
244 count = sf_readf_short(sf_in, ptr, sfinfo_in.frames);
245 if (count != sfinfo_in.frames) {
247 (int) sfinfo_in.frames, (int) count);
270 count = sf_writef_short(sf_out, &((short *) ptr)[sfinfo_in.channels * s.mSegmentArray[i]
272 if (count != s.mSegmentArray[i].mFrameLength) {
274 path_out, (int) s.mSegmentArray[i].mFrameLength, (int) count);

Completed in 102 milliseconds

12345