Lines Matching refs:res
59 void CheckErr( SLresult res ) in CheckErr() argument
61 if ( res != SL_RESULT_SUCCESS ) in CheckErr()
63 fprintf(stdout, "%u SL failure, exiting\n", res); in CheckErr()
88 SLresult res; in BufferQueueCallback() local
95 res = (*queueItf)->Enqueue(queueItf, (void*) pCntxt->pData, in BufferQueueCallback()
97 CheckErr(res); in BufferQueueCallback()
109 SLresult res; in TestPlaySawtoothBufferQueue() local
135 res = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); in TestPlaySawtoothBufferQueue()
136 CheckErr(res); in TestPlaySawtoothBufferQueue()
149 res = (*EngineItf)->CreateOutputMix(EngineItf, &OutputMix, 0, in TestPlaySawtoothBufferQueue()
150 iidArray, required); CheckErr(res); in TestPlaySawtoothBufferQueue()
153 res = (*OutputMix)->Realize(OutputMix, SL_BOOLEAN_FALSE); in TestPlaySawtoothBufferQueue()
154 CheckErr(res); in TestPlaySawtoothBufferQueue()
157 res = (*OutputMix)->GetInterface(OutputMix, SL_IID_VOLUME, in TestPlaySawtoothBufferQueue()
158 (void*)&volumeItf); CheckErr(res); in TestPlaySawtoothBufferQueue()
200 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, in TestPlaySawtoothBufferQueue()
201 &audioSource, &audioSink, 1, iidArray, required); CheckErr(res); in TestPlaySawtoothBufferQueue()
205 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); in TestPlaySawtoothBufferQueue()
209 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestPlaySawtoothBufferQueue()
210 CheckErr(res); in TestPlaySawtoothBufferQueue()
213 res = (*player)->GetInterface(player, SL_IID_BUFFERQUEUE, in TestPlaySawtoothBufferQueue()
214 (void*)&bufferQueueItf); CheckErr(res); in TestPlaySawtoothBufferQueue()
217 res = (*bufferQueueItf)->RegisterCallback(bufferQueueItf, in TestPlaySawtoothBufferQueue()
218 BufferQueueCallback, &cntxt); CheckErr(res); in TestPlaySawtoothBufferQueue()
222 res = (*volumeItf)->SetVolumeLevel(volumeItf, -300); CheckErr(res); in TestPlaySawtoothBufferQueue()
226 res = (*bufferQueueItf)->Enqueue(bufferQueueItf, cntxt.pData, in TestPlaySawtoothBufferQueue()
228 CheckErr(res); in TestPlaySawtoothBufferQueue()
231 res = (*bufferQueueItf)->Enqueue(bufferQueueItf, cntxt.pData, in TestPlaySawtoothBufferQueue()
233 CheckErr(res); in TestPlaySawtoothBufferQueue()
236 res = (*bufferQueueItf)->Enqueue(bufferQueueItf, cntxt.pData, in TestPlaySawtoothBufferQueue()
238 CheckErr(res); in TestPlaySawtoothBufferQueue()
243 res = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PLAYING ); in TestPlaySawtoothBufferQueue()
244 CheckErr(res); in TestPlaySawtoothBufferQueue()
251 res = (*bufferQueueItf)->GetState(bufferQueueItf, &state); in TestPlaySawtoothBufferQueue()
252 CheckErr(res); in TestPlaySawtoothBufferQueue()
261 res = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_STOPPED); in TestPlaySawtoothBufferQueue()
262 CheckErr(res); in TestPlaySawtoothBufferQueue()
274 SLresult res; in main() local
281 res = slCreateEngine( &sl, 1, EngineOption, 0, NULL, NULL); in main()
282 CheckErr(res); in main()
284 res = (*sl)->Realize(sl, SL_BOOLEAN_FALSE); CheckErr(res); in main()