/frameworks/wilhelm/tests/mimeUri/ |
D | slesTestPlayUri.cpp | 225 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestPlayUri() local 226 res = (*playItf)->GetDuration(playItf, &durationInMsec); in TestPlayUri() 228 if (durationInMsec == SL_TIME_UNKNOWN) { in TestPlayUri() 232 durationInMsec); in TestPlayUri() 264 res = (*playItf)->GetDuration(playItf, &durationInMsec); in TestPlayUri() 266 if (durationInMsec == SL_TIME_UNKNOWN) { in TestPlayUri() 269 fprintf(stdout, "Content duration is %u ms (after prefetch completed)\n", durationInMsec); in TestPlayUri() 296 usleep(durationInMsec * 1000); in TestPlayUri() 302 usleep((durationInMsec + 200) * 1000); in TestPlayUri()
|
D | slesTestLoopUri.cpp | 218 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestLoopUri() local 219 res = (*playItf)->GetDuration(playItf, &durationInMsec); in TestLoopUri() 221 if (durationInMsec == SL_TIME_UNKNOWN) { in TestLoopUri() 225 durationInMsec); in TestLoopUri() 249 res = (*playItf)->GetDuration(playItf, &durationInMsec); in TestLoopUri() 251 if (durationInMsec == SL_TIME_UNKNOWN) { in TestLoopUri() 254 fprintf(stdout, "Content duration is %u ms (after prefetch completed)\n", durationInMsec); in TestLoopUri() 264 usleep( (REPETITIONS-1) * durationInMsec * 1100); in TestLoopUri() 269 usleep(durationInMsec * 1000); in TestLoopUri()
|
D | slesTestSlowDownUri.cpp | 269 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestSlowDownUri() local 270 res = (*playItf)->GetDuration(playItf, &durationInMsec); CheckErr(res); in TestSlowDownUri() 271 if (durationInMsec == SL_TIME_UNKNOWN) { in TestSlowDownUri() 275 durationInMsec); in TestSlowDownUri() 351 res = (*playItf)->GetDuration(playItf, &durationInMsec); CheckErr(res); in TestSlowDownUri() 352 if (durationInMsec == SL_TIME_UNKNOWN) { in TestSlowDownUri() 355 fprintf(stdout, "Content duration is %u ms (after prefetch completed)\n", durationInMsec); in TestSlowDownUri() 365 usleep( (REPETITIONS-1) * durationInMsec * 1100); in TestSlowDownUri() 369 usleep(durationInMsec * 1100); in TestSlowDownUri() 377 usleep(durationInMsec * 1000); in TestSlowDownUri()
|
D | slesTestPlayStreamType.cpp | 178 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestStreamTypeConfiguration() local 179 result = (*playItf)->GetDuration(playItf, &durationInMsec); in TestStreamTypeConfiguration() 181 if (durationInMsec == SL_TIME_UNKNOWN) { in TestStreamTypeConfiguration() 182 durationInMsec = 5000; in TestStreamTypeConfiguration() 189 usleep((durationInMsec/2) * 1000); in TestStreamTypeConfiguration() 210 usleep((durationInMsec/2) * 1000); in TestStreamTypeConfiguration()
|
D | slesTestPlayUri2.cpp | 218 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestPlayUri() local 219 result = (*playItf)->GetDuration(playItf, &durationInMsec); in TestPlayUri() 221 if (durationInMsec == SL_TIME_UNKNOWN) { in TestPlayUri() 224 fprintf(stdout, "Content duration of first URI is %u ms\n", durationInMsec); in TestPlayUri() 228 if (durationInMsec == SL_TIME_UNKNOWN) { in TestPlayUri() 229 durationInMsec = 5000; /* arbitrary time when duration is unknown */ in TestPlayUri() 231 usleep((durationInMsec + 2000) * 1000); in TestPlayUri()
|
D | slesTestGetPositionUri.cpp | 150 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestGetPositionUri() local 257 res = (*playItf)->GetDuration(playItf, &durationInMsec); CheckErr(res); in TestGetPositionUri() 258 if (durationInMsec == SL_TIME_UNKNOWN) { in TestGetPositionUri() 262 fprintf(stdout, "Content duration is %u ms (after prefetch completed)\n", durationInMsec); in TestGetPositionUri() 269 while ((counter*1000) < durationInMsec) { in TestGetPositionUri()
|
D | slesTestManyPlayers.cpp | 292 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in CreatePlayer() local 293 res = (*playItfs[playerId])->GetDuration(playItfs[playerId], &durationInMsec); in CreatePlayer() 295 if (durationInMsec == SL_TIME_UNKNOWN) { in CreatePlayer() 298 fprintf(stdout, "Content duration is %u ms for player %d\n", durationInMsec, playerId); in CreatePlayer()
|
/frameworks/wilhelm/tests/ |
D | mimeUri_test.cpp | 183 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestPlayUri() local 184 res = (*playItf)->GetDuration(playItf, &durationInMsec); in TestPlayUri() 213 res = (*playItf)->GetDuration(playItf, &durationInMsec); in TestPlayUri() 215 if (durationInMsec == SL_TIME_UNKNOWN) { in TestPlayUri() 219 SLint32 durationDiffMsec = durationInMsec - MP3_DURATION; in TestPlayUri() 223 durationInMsec, MP3_DURATION); in TestPlayUri()
|
/frameworks/wilhelm/tests/examples/ |
D | slesTestPlayFdPath.cpp | 194 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestPlayPathFromFD() local 195 result = (*playItf)->GetDuration(playItf, &durationInMsec); in TestPlayPathFromFD() 197 if (durationInMsec == SL_TIME_UNKNOWN) { in TestPlayPathFromFD() 198 durationInMsec = 5000; in TestPlayPathFromFD() 205 usleep(durationInMsec * 1000); in TestPlayPathFromFD()
|
D | slesTestVirtualizerPath.cpp | 182 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestVirtualizerPathFromFD() local 183 result = (*playItf)->GetDuration(playItf, &durationInMsec); in TestVirtualizerPathFromFD() 185 if (durationInMsec == SL_TIME_UNKNOWN) { in TestVirtualizerPathFromFD() 186 durationInMsec = 5000; in TestVirtualizerPathFromFD() 215 for(unsigned int j=0 ; j<(durationInMsec/(1000*TIME_S_BETWEEN_VIRT_ON_OFF)) ; j++) { in TestVirtualizerPathFromFD()
|
D | slesTestBassBoostPath.cpp | 181 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestBassBoostPathFromFD() local 182 result = (*playItf)->GetDuration(playItf, &durationInMsec); in TestBassBoostPathFromFD() 184 if (durationInMsec == SL_TIME_UNKNOWN) { in TestBassBoostPathFromFD() 185 durationInMsec = 5000; in TestBassBoostPathFromFD() 213 for(unsigned int j=0 ; j<(durationInMsec/(1000*TIME_S_BETWEEN_BB_ON_OFF)) ; j++) { in TestBassBoostPathFromFD()
|
D | slesTestDecodeToBuffQueue.cpp | 218 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in DecPlayCallback() 219 SLresult result = (*pCntxt->playItf)->GetDuration(pCntxt->playItf, &durationInMsec); in DecPlayCallback() 221 if (durationInMsec == SL_TIME_UNKNOWN) { in DecPlayCallback() 225 durationInMsec); in DecPlayCallback() 449 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestDecToBuffQueue() local 450 result = (*playItf)->GetDuration(playItf, &durationInMsec); in TestDecToBuffQueue() 452 if (durationInMsec == SL_TIME_UNKNOWN) { in TestDecToBuffQueue() 455 fprintf(stdout, "Content duration is %ums\n", durationInMsec); in TestDecToBuffQueue()
|
D | slesTestEqOutputPath.cpp | 190 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestEQPathFromFD() local 191 result = (*playItf)->GetDuration(playItf, &durationInMsec); in TestEQPathFromFD() 193 if (durationInMsec == SL_TIME_UNKNOWN) { in TestEQPathFromFD() 194 durationInMsec = 5000; in TestEQPathFromFD() 246 for(unsigned int j=0 ; j<(durationInMsec/(1000*TIME_S_BETWEEN_EQ_ON_OFF)) ; j++) { in TestEQPathFromFD()
|
D | slesTestEqFdPath.cpp | 186 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestEQPathFromFD() local 187 result = (*playItf)->GetDuration(playItf, &durationInMsec); in TestEQPathFromFD() 189 if (durationInMsec == SL_TIME_UNKNOWN) { in TestEQPathFromFD() 190 durationInMsec = 5000; in TestEQPathFromFD() 242 for(unsigned int j=0 ; j<(durationInMsec/(1000*TIME_S_BETWEEN_EQ_ON_OFF)) ; j++) { in TestEQPathFromFD()
|
D | slesTestSendToPresetReverb.cpp | 248 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestSendToPresetReverb() local 249 result = (*playItf)->GetDuration(playItf, &durationInMsec); in TestSendToPresetReverb() 251 if (durationInMsec == SL_TIME_UNKNOWN) { in TestSendToPresetReverb() 253 durationInMsec = 10000; in TestSendToPresetReverb() 255 printf("Duration is %.1f seconds\n", durationInMsec / 1000.0); in TestSendToPresetReverb()
|
/frameworks/wilhelm/tests/sandbox/streamSource/ |
D | slesTestPlayStream.cpp | 271 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestPlayStream() local 272 res = (*playItf)->GetDuration(playItf, &durationInMsec); in TestPlayStream() 274 if (durationInMsec == SL_TIME_UNKNOWN) { in TestPlayStream() 278 durationInMsec); in TestPlayStream()
|