Lines Matching refs:result

29 void ExitOnError( SLresult result )  in ExitOnError()  argument
31 if (SL_RESULT_SUCCESS != result) { in ExitOnError()
32 fprintf(stdout, "%u error code encountered, exiting\n", result); in ExitOnError()
65 SLresult result; in TestPlayUri() local
89 result = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); in TestPlayUri()
90 ExitOnError(result); in TestPlayUri()
108 result = (*EngineItf)->CreateOutputMix(EngineItf, &outputMix, 0, iidArray, required); in TestPlayUri()
109 ExitOnError(result); in TestPlayUri()
112 result = (*outputMix)->Realize(outputMix, SL_BOOLEAN_FALSE); in TestPlayUri()
113 ExitOnError(result); in TestPlayUri()
137 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 2, in TestPlayUri()
139 ExitOnError(result); in TestPlayUri()
144 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player2, &audioSource, &audioSink, 2, in TestPlayUri()
146 ExitOnError(result); in TestPlayUri()
149 result = (*player)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result); in TestPlayUri()
150 result = (*player)->Realize(player2, SL_BOOLEAN_FALSE); ExitOnError(result); in TestPlayUri()
154 result = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestPlayUri()
155 ExitOnError(result); in TestPlayUri()
156 result = (*player)->GetInterface(player2, SL_IID_PLAY, (void*)&playItf2); in TestPlayUri()
157 ExitOnError(result); in TestPlayUri()
159 result = (*player)->GetInterface(player, SL_IID_VOLUME, (void*)&volItf); in TestPlayUri()
160 ExitOnError(result); in TestPlayUri()
161 result = (*player2)->GetInterface(player2, SL_IID_VOLUME, (void*)&volItf2); in TestPlayUri()
162 ExitOnError(result); in TestPlayUri()
164 result = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestPlayUri()
165 ExitOnError(result); in TestPlayUri()
166 result = (*player2)->GetInterface(player2, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf2); in TestPlayUri()
167 ExitOnError(result); in TestPlayUri()
170 result = (*playItf)->RegisterCallback(playItf, PlayEventCallback, &playItf); in TestPlayUri()
171 ExitOnError(result); in TestPlayUri()
172 result = (*playItf)->SetCallbackEventsMask(playItf, in TestPlayUri()
175 ExitOnError(result); in TestPlayUri()
178 result = (*volItf)->SetVolumeLevel( volItf, -300); in TestPlayUri()
179 ExitOnError(result); in TestPlayUri()
181 result = (*volItf)->EnableStereoPosition( volItf, SL_BOOLEAN_TRUE); ExitOnError(result); in TestPlayUri()
182 result = (*volItf)->SetStereoPosition( volItf, -1000); ExitOnError(result); in TestPlayUri()
184 result = (*volItf2)->EnableStereoPosition( volItf2, SL_BOOLEAN_TRUE); ExitOnError(result); in TestPlayUri()
185 result = (*volItf2)->SetStereoPosition( volItf2, 1000); ExitOnError(result); in TestPlayUri()
191 result = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PAUSED ); in TestPlayUri()
192 ExitOnError(result); in TestPlayUri()
193 result = (*playItf2)->SetPlayState( playItf2, SL_PLAYSTATE_PAUSED ); in TestPlayUri()
194 ExitOnError(result); in TestPlayUri()
208 result = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PLAYING ); in TestPlayUri()
209 ExitOnError(result); in TestPlayUri()
214 result = (*playItf2)->SetPlayState( playItf2, SL_PLAYSTATE_PLAYING ); in TestPlayUri()
215 ExitOnError(result); in TestPlayUri()
219 result = (*playItf)->GetDuration(playItf, &durationInMsec); in TestPlayUri()
220 ExitOnError(result); in TestPlayUri()
235 result = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_STOPPED); in TestPlayUri()
236 ExitOnError(result); in TestPlayUri()
237 result = (*playItf2)->SetPlayState(playItf2, SL_PLAYSTATE_STOPPED); in TestPlayUri()
238 ExitOnError(result); in TestPlayUri()
251 SLresult result; in main() local
271 result = slCreateEngine( &sl, 1, EngineOption, 0, NULL, NULL); in main()
272 ExitOnError(result); in main()
275 result = (*sl)->Realize(sl, SL_BOOLEAN_FALSE); in main()
276 ExitOnError(result); in main()