Lines Matching refs:position

210     SLmillisecond position;
211 SLresult res = (*caller)->GetPosition(caller, &position);
214 printf("SL_PLAYEVENT_HEADATMARKER position=%u ms\n", position);
217 printf("SL_PLAYEVENT_HEADATNEWPOS position=%u ms\n", position);
220 printf("SL_PLAYEVENT_HEADATEND position=%u ms, all decoded data has been received\n",
221 position);
385 /* Periodically ask for position and duration */
387 SLmillisecond position;
388 res = (*pCntxt->playItf)->GetPosition(pCntxt->playItf, &position);
394 printf("After %u encoded %u decoded frames: position is %u ms, duration is "
396 encodedFrames, decodedFrames, position);
398 printf("After %u encoded %u decoded frames: position is %u ms, duration is "
400 encodedFrames, decodedFrames, position, duration);
552 /* Enable callback when position passes through a marker (SL_PLAYEVENT_HEADATMARKER) */
556 /* Enable callback for periodic position updates (SL_PLAYEVENT_HEADATNEWPOS) */
567 /* Get the position before prefetch; should be zero */
568 SLmillisecond position;
569 res = (*playItf)->GetPosition(playItf, &position);
571 if (position == 0) {
572 printf("The position before prefetch is zero as expected\n");
573 } else if (position == SL_TIME_UNKNOWN) {
574 printf("That's surprising the position before prefetch is unknown");
576 printf("That's surprising the position before prefetch is %u ms\n", position);
819 /* Get the final position and duration */
820 res = (*playItf)->GetPosition(playItf, &position);
825 printf("The final position is %u ms, duration is unknown\n", position);
827 printf("The final position is %u ms, duration is %u ms\n", position, duration);