Lines Matching refs:res

59 void CheckErr( SLresult res )
61 if ( res != SL_RESULT_SUCCESS )
63 fprintf(stdout, "%u SL failure, exiting\n", res);
67 //fprintf(stdout, "%d SL success, proceeding...\n", res);
88 SLresult res;
95 res = (*queueItf)->Enqueue(queueItf, (void*) pCntxt->pData,
97 CheckErr(res);
112 SLresult res;
138 res = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf);
139 CheckErr(res);
152 res = (*EngineItf)->CreateOutputMix(EngineItf, &OutputMix, 0,
153 iidArray, required); CheckErr(res);
156 res = (*OutputMix)->Realize(OutputMix, SL_BOOLEAN_FALSE);
157 CheckErr(res);
160 res = (*OutputMix)->GetInterface(OutputMix, SL_IID_VOLUME,
161 (void*)&volumeItf); CheckErr(res);
203 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player,
204 &audioSource, &audioSink, 1, iidArray, required); CheckErr(res);
208 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res);
212 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf);
213 CheckErr(res);
216 res = (*player)->GetInterface(player, SL_IID_BUFFERQUEUE,
217 (void*)&bufferQueueItf); CheckErr(res);
220 res = (*bufferQueueItf)->RegisterCallback(bufferQueueItf,
221 BufferQueueCallback, &cntxt); CheckErr(res);
225 res = (*volumeItf)->SetVolumeLevel(volumeItf, -300); CheckErr(res);
229 res = (*bufferQueueItf)->Enqueue(bufferQueueItf, cntxt.pData,
231 CheckErr(res);
234 res = (*bufferQueueItf)->Enqueue(bufferQueueItf, cntxt.pData,
236 CheckErr(res);
239 res = (*bufferQueueItf)->Enqueue(bufferQueueItf, cntxt.pData,
241 CheckErr(res);
246 res = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PLAYING );
247 CheckErr(res);
254 res = (*bufferQueueItf)->GetState(bufferQueueItf, &state);
255 CheckErr(res);
264 res = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_STOPPED);
265 CheckErr(res);
277 SLresult res;
284 res = slCreateEngine( &sl, 1, EngineOption, 0, NULL, NULL);
285 CheckErr(res);
287 res = (*sl)->Realize(sl, SL_BOOLEAN_FALSE); CheckErr(res);