Lines Matching defs:player
60 /* Objects this application uses: one player and an ouput mix */
61 SLObjectItf player, outputMix;
72 /* Data sinks for the audio player */
76 /* Play and PrefetchStatus interfaces for the audio player */
103 /* Create Output Mix object to be used by the player */
121 /* Configuration of the player */
156 /* Create the audio player */
157 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 1,
161 /* Realize the player in synchronous mode. */
162 result = (*player)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result);
165 /* Get the SLPlayItf, SLPrefetchStatusItf and SLAndroidStreamTypeItf interfaces for the player*/
166 result = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf);
169 result = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf);
172 fprintf(stdout, "Player configured\n");
177 /* Start the data prefetching by setting the player to the paused state */
264 /* Make sure player is stopped */
269 /* Destroy the player */
270 (*player)->Destroy(player);