Lines Matching refs:result
97 SLresult result; in createEngine() local
100 result = slCreateEngine(&engineObject, 0, nullptr, 0, nullptr, nullptr); in createEngine()
101 if (result != SL_RESULT_SUCCESS) { in createEngine()
102 ALOGE("slCreateEngine failed with result %d", result); in createEngine()
105 (void)result; in createEngine()
108 result = (*engineObject)->Realize(engineObject, SL_BOOLEAN_FALSE); in createEngine()
109 if (result != SL_RESULT_SUCCESS) { in createEngine()
110 ALOGE("sl engine Realize failed with result %d", result); in createEngine()
113 (void)result; in createEngine()
116 result = (*engineObject)->GetInterface(engineObject, SL_IID_ENGINE, &engineEngine); in createEngine()
117 if (result != SL_RESULT_SUCCESS) { in createEngine()
118 ALOGE("sl engine GetInterface failed with result %d", result); in createEngine()
121 (void)result; in createEngine()
124 result = (*engineEngine)->CreateOutputMix(engineEngine, &outputMixObject, 0, nullptr, nullptr); in createEngine()
125 if (result != SL_RESULT_SUCCESS) { in createEngine()
126 ALOGE("sl engine CreateOutputMix failed with result %d", result); in createEngine()
129 (void)result; in createEngine()
132 result = (*outputMixObject)->Realize(outputMixObject, SL_BOOLEAN_FALSE); in createEngine()
133 if (result != SL_RESULT_SUCCESS) { in createEngine()
134 ALOGE("sl outputMix Realize failed with result %d", result); in createEngine()
137 (void)result; in createEngine()
144 SLresult result; in createBufferQueueAudioPlayer() local
181 result = (*engineEngine)->CreateAudioPlayer(engineEngine, &bqPlayerObject, &audioSrc, &audioSnk, in createBufferQueueAudioPlayer()
183 if (result != SL_RESULT_SUCCESS) { in createBufferQueueAudioPlayer()
184 ALOGE("sl CreateAudioPlayer failed with result %d", result); in createBufferQueueAudioPlayer()
187 (void)result; in createBufferQueueAudioPlayer()
191 result = (*bqPlayerObject)->GetInterface(bqPlayerObject, in createBufferQueueAudioPlayer()
193 if (result != SL_RESULT_SUCCESS) { in createBufferQueueAudioPlayer()
194 ALOGE("config GetInterface failed with result %d", result); in createBufferQueueAudioPlayer()
198 result = (*playerConfig)->SetConfiguration(playerConfig, in createBufferQueueAudioPlayer()
200 if (result != SL_RESULT_SUCCESS) { in createBufferQueueAudioPlayer()
201 ALOGE("SetConfiguration failed with result %d", result); in createBufferQueueAudioPlayer()
207 result = (*playerConfig)->SetConfiguration( in createBufferQueueAudioPlayer()
209 ALOGW_IF(result != SL_RESULT_SUCCESS, in createBufferQueueAudioPlayer()
210 "could not set performance mode on player, error %d", result); in createBufferQueueAudioPlayer()
211 (void)result; in createBufferQueueAudioPlayer()
214 result = (*bqPlayerObject)->Realize(bqPlayerObject, SL_BOOLEAN_FALSE); in createBufferQueueAudioPlayer()
215 if (result != SL_RESULT_SUCCESS) { in createBufferQueueAudioPlayer()
216 ALOGE("sl player Realize failed with result %d", result); in createBufferQueueAudioPlayer()
219 (void)result; in createBufferQueueAudioPlayer()
222 result = (*bqPlayerObject)->GetInterface(bqPlayerObject, SL_IID_PLAY, &bqPlayerPlay); in createBufferQueueAudioPlayer()
223 if (result != SL_RESULT_SUCCESS) { in createBufferQueueAudioPlayer()
224 ALOGE("sl player GetInterface failed with result %d", result); in createBufferQueueAudioPlayer()
227 (void)result; in createBufferQueueAudioPlayer()
230 result = (*bqPlayerObject)->GetInterface(bqPlayerObject, SL_IID_BUFFERQUEUE, in createBufferQueueAudioPlayer()
232 if (result != SL_RESULT_SUCCESS) { in createBufferQueueAudioPlayer()
233 ALOGE("sl playberBufferQueue GetInterface failed with result %d", result); in createBufferQueueAudioPlayer()
236 (void)result; in createBufferQueueAudioPlayer()
239 … result = (*bqPlayerBufferQueue)->RegisterCallback(bqPlayerBufferQueue, bqPlayerCallback, nullptr); in createBufferQueueAudioPlayer()
240 if (result != SL_RESULT_SUCCESS) { in createBufferQueueAudioPlayer()
241 ALOGE("sl bqPlayerBufferQueue RegisterCallback failed with result %d", result); in createBufferQueueAudioPlayer()
244 (void)result; in createBufferQueueAudioPlayer()
247 result = (*bqPlayerObject)->GetInterface(bqPlayerObject, SL_IID_VOLUME, &bqPlayerVolume); in createBufferQueueAudioPlayer()
248 if (result != SL_RESULT_SUCCESS) { in createBufferQueueAudioPlayer()
249 ALOGE("sl volume GetInterface failed with result %d", result); in createBufferQueueAudioPlayer()
252 (void)result; in createBufferQueueAudioPlayer()
421 SLresult result; in playClip() local
422 result = (*bqPlayerBufferQueue)->Enqueue(bqPlayerBufferQueue, nextBuffer, nextSize); in playClip()
423 if (SL_RESULT_SUCCESS != result) { in playClip()
436 SLresult result; in setPlaying() local
440 result = (*bqPlayerPlay)->SetPlayState(bqPlayerPlay, in setPlaying()