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);
109 SLresult res;
135 res = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf);
136 CheckErr(res);
149 res = (*EngineItf)->CreateOutputMix(EngineItf, &OutputMix, 0,
150 iidArray, required); CheckErr(res);
153 res = (*OutputMix)->Realize(OutputMix, SL_BOOLEAN_FALSE);
154 CheckErr(res);
157 res = (*OutputMix)->GetInterface(OutputMix, SL_IID_VOLUME,
158 (void*)&volumeItf); CheckErr(res);
200 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player,
201 &audioSource, &audioSink, 1, iidArray, required); CheckErr(res);
205 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res);
209 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf);
210 CheckErr(res);
213 res = (*player)->GetInterface(player, SL_IID_BUFFERQUEUE,
214 (void*)&bufferQueueItf); CheckErr(res);
217 res = (*bufferQueueItf)->RegisterCallback(bufferQueueItf,
218 BufferQueueCallback, &cntxt); CheckErr(res);
222 res = (*volumeItf)->SetVolumeLevel(volumeItf, -300); CheckErr(res);
226 res = (*bufferQueueItf)->Enqueue(bufferQueueItf, cntxt.pData,
228 CheckErr(res);
231 res = (*bufferQueueItf)->Enqueue(bufferQueueItf, cntxt.pData,
233 CheckErr(res);
236 res = (*bufferQueueItf)->Enqueue(bufferQueueItf, cntxt.pData,
238 CheckErr(res);
243 res = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PLAYING );
244 CheckErr(res);
251 res = (*bufferQueueItf)->GetState(bufferQueueItf, &state);
252 CheckErr(res);
261 res = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_STOPPED);
262 CheckErr(res);
274 SLresult res;
281 res = slCreateEngine( &sl, 1, EngineOption, 0, NULL, NULL);
282 CheckErr(res);
284 res = (*sl)->Realize(sl, SL_BOOLEAN_FALSE); CheckErr(res);