Lines Matching refs:res

63 void CheckErr( SLresult res )  in CheckErr()  argument
65 if ( res != SL_RESULT_SUCCESS ) { in CheckErr()
66 fprintf(stderr, "%u SL failure, exiting\n", res); in CheckErr()
103 SLresult res; in TestPlayUri() local
123 res = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); in TestPlayUri()
124 CheckErr(res); in TestPlayUri()
138 res = (*EngineItf)->CreateOutputMix(EngineItf, &OutputMix, 0, in TestPlayUri()
139 iidArray, required); CheckErr(res); in TestPlayUri()
142 res = (*OutputMix)->Realize(OutputMix, SL_BOOLEAN_FALSE); in TestPlayUri()
143 CheckErr(res); in TestPlayUri()
162 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, in TestPlayUri()
163 &audioSource, &audioSink, 2, iidArray, required); CheckErr(res); in TestPlayUri()
166 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); in TestPlayUri()
169 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestPlayUri()
170 CheckErr(res); in TestPlayUri()
172 res = (*player)->GetInterface(player, SL_IID_VOLUME, (void*)&volItf); in TestPlayUri()
173 CheckErr(res); in TestPlayUri()
175 res = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestPlayUri()
176 CheckErr(res); in TestPlayUri()
177 res = (*prefetchItf)->RegisterCallback(prefetchItf, PrefetchEventCallback, &prefetchItf); in TestPlayUri()
178 CheckErr(res); in TestPlayUri()
179 res = (*prefetchItf)->SetCallbackEventsMask(prefetchItf, in TestPlayUri()
184 res = (*playItf)->GetDuration(playItf, &durationInMsec); in TestPlayUri()
185 CheckErr(res); in TestPlayUri()
188 res = (*volItf)->SetVolumeLevel( volItf, -300); in TestPlayUri()
189 CheckErr(res); in TestPlayUri()
193 res = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PAUSED ); in TestPlayUri()
194 CheckErr(res); in TestPlayUri()
213 res = (*playItf)->GetDuration(playItf, &durationInMsec); in TestPlayUri()
214 CheckErr(res); in TestPlayUri()
227 res = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PLAYING ); in TestPlayUri()
228 CheckErr(res); in TestPlayUri()
235 res = (*playItf)->GetPosition(playItf, &currentPositionInMsec); in TestPlayUri()
236 CheckErr(res); in TestPlayUri()
248 res = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_STOPPED); in TestPlayUri()
249 CheckErr(res); in TestPlayUri()
266 SLresult res; member in MimeUri
275 res = slCreateEngine(&sl, 1, EngineOption, 0, NULL, NULL); in MimeUri()
276 CheckErr(res); in MimeUri()
279 res = (*sl)->Realize(sl, SL_BOOLEAN_FALSE); in MimeUri()
280 CheckErr(res); in MimeUri()