Lines Matching refs:rate
71 SLpermille minRate, maxRate, stepSize, rate = 1000; in PlayEventCallback() local
75 SLresult res = (*pRateItf)->GetRate(pRateItf, &rate); CheckErr(res); in PlayEventCallback()
78 fprintf(stdout, "old rate = %d, minRate=%d, maxRate=%d\n", rate, minRate, maxRate); in PlayEventCallback()
79 rate /= 2; in PlayEventCallback()
80 if (rate < minRate) { in PlayEventCallback()
81 rate = minRate; in PlayEventCallback()
83 fprintf(stdout, "new rate = %d\n", rate); in PlayEventCallback()
84 res = (*pRateItf)->SetRate(pRateItf, rate); CheckErr(res); in PlayEventCallback()
86 fprintf(stderr, "new playback rate %d per mille is unsupported\n", rate); in PlayEventCallback()
290 SLpermille rate = 1234; in TestSlowDownUri() local
291 res = (*rateItf)->GetRate(rateItf, &rate); CheckErr(res); in TestSlowDownUri()
292 printf("default rate = %d per mille\n", rate); in TestSlowDownUri()
293 assert(1000 == rate); in TestSlowDownUri()