Lines Matching refs:result

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