/frameworks/wilhelm/src/itf/ |
H A D | IAndroidConfiguration.cpp | 110 SL_LOGE("Error creating player routing object - Routing Proxy Already Acquired."); 114 CAudioPlayer* player = (CAudioPlayer*)configObj; // get the native player local 116 switch (player->mAndroidObjType) { 119 // if (player->mObject.mState != SL_OBJECT_STATE_REALIZED) { 120 // // Make sure the player has been realized. 124 // android::AudioTrack* pAudioTrack = player->mAudioTrack.get(); 136 SL_LOGE("Error creating routing object - Player is not a buffer-queue player."); 168 SL_LOGE("Java exception creating player routing object."); 255 * aspects of the associated native player o [all...] |
/frameworks/wilhelm/tests/examples/ |
H A D | slesTestBassBoostPath.cpp | 55 /* Objects this application uses: one player and an ouput mix */ 56 SLObjectItf player, outputMix; local 67 /* Data sinks for the audio player */ 71 /* Interfaces for the audio player */ 92 /* Create Output Mix object to be used by the player */ 107 /* Configuration of the player */ 144 /* Create the audio player */ 145 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 2, 149 /* Realize the player in synchronous mode. */ 150 result = (*player) [all...] |
H A D | slesTestPlayFdPath.cpp | 76 /* Objects this application uses: one player and an ouput mix */ 77 SLObjectItf player, outputMix; local 84 /* Data sinks for the audio player */ 88 /* Play and PrefetchStatus interfaces for the audio player */ 108 /* Create Output Mix object to be used by the player */ 123 /* Configuration of the player */ 150 /* Create the audio player */ 151 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 1, 155 /* Realize the player in synchronous mode. */ 156 result = (*player) [all...] |
H A D | slesTestSawtoothBufferQueue.cpp | 118 SLObjectItf player; local 148 // Create Output Mix object to be used by player 199 /* Create the music player */ 200 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, 204 /* Realizing the player in synchronous mode. */ 205 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); 209 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); 213 res = (*player) [all...] |
H A D | slesTestVirtualizerPath.cpp | 56 /* Objects this application uses: one player and an ouput mix */ 57 SLObjectItf player, outputMix; local 68 /* Data sinks for the audio player */ 72 /* Play and PrefetchStatus interfaces for the audio player */ 93 /* Create Output Mix object to be used by the player */ 108 /* Configuration of the player */ 145 /* Create the audio player */ 146 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 2, 150 /* Realize the player in synchronous mode. */ 151 result = (*player) [all...] |
H A D | slesTestEqFdPath.cpp | 60 /* Objects this application uses: one player and an ouput mix */ 61 SLObjectItf player, outputMix; local 72 /* Data sinks for the audio player */ 76 /* Play and PrefetchStatus interfaces for the audio player */ 97 /* Create Output Mix object to be used by the player */ 112 /* Configuration of the player */ 149 /* Create the audio player */ 150 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 2, 154 /* Realize the player in synchronous mode. */ 155 result = (*player) [all...] |
H A D | slesTestEqOutputPath.cpp | 60 /* Objects this application uses: one player and an ouput mix */ 61 SLObjectItf player, outputMix; local 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) [all...] |
H A D | slesTestSendToPresetReverb.cpp | 78 /* Objects this application uses: one player and an ouput mix */ 79 SLObjectItf player, outputMix; local 89 /* Data sinks for the audio player */ 93 /* Interfaces for the audio player */ 122 /* Create Output Mix object to be used by the player */ 159 /* Configuration of the player */ 199 /* Create the audio player */ 200 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 3, 204 /* Realize the player in synchronous mode. */ 205 result = (*player) [all...] |
/frameworks/wilhelm/tests/mimeUri/ |
H A D | slesTestPlayStreamType.cpp | 53 /* Objects this application uses: one player and an ouput mix */ 54 SLObjectItf player, outputMix; local 61 /* Data sinks for the audio player */ 65 /* Play, Volume and AndroidStreamType interfaces for the audio player */ 88 /* Create Output Mix object to be used by the player */ 103 /* Configuration of the player */ 127 /* Create the audio player */ 128 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 132 /* Retrieve the configuration interface before the player is realized so its resources 136 result = (*player) [all...] |
H A D | slesTestPlayUri.cpp | 71 /* PrefetchStatusItf callback for an audio player */ 138 SLObjectItf player; local 163 // Create Output Mix object to be used by player 187 /* Create the audio player */ 188 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 191 /* Realizing the player in synchronous mode. */ 192 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); 196 res = (*player)->GetInterface(player, SL_IID_PLA [all...] |
H A D | slesTestPlayUri2.cpp | 38 /* PlayItf callback for an audio player */ 69 SLObjectItf player, player2, outputMix; local 107 /* Create Output Mix object to be used each player */ 136 /* Create the first audio player */ 137 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 2, 141 /* Create the second audio player with a different path for its data source */ 149 result = (*player)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result); 150 result = (*player)->Realize(player2, SL_BOOLEAN_FALSE); ExitOnError(result); 153 /* Get the SLPlayItf, SLVolumeItf and SLPrefetchStatusItf interfaces for each player */ [all...] |
H A D | slesTestGetPositionUri.cpp | 65 /* PrefetchStatusItf callback for an audio player */ 140 SLObjectItf player; local 170 // Create Output Mix object to be used by player 194 /* Create the audio player */ 195 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 198 /* Realizing the player in synchronous mode. */ 199 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); 203 res = (*player)->GetInterface(player, SL_IID_PLA [all...] |
H A D | slesTestLoopUri.cpp | 62 /* PrefetchStatusItf callback for an audio player */ 135 SLObjectItf player; local 157 // Create Output Mix object to be used by player 181 /* Create the audio player */ 186 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 189 /* Realizing the player in synchronous mode. */ 190 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); 194 res = (*player)->GetInterface(player, SL_IID_PLA [all...] |
H A D | slesTestSlowDownUri.cpp | 64 /* PlayItf callback for an audio player */ 107 /* PrefetchStatusItf callback for an audio player */ 191 SLObjectItf player; local 213 // Create Output Mix object to be used by player 237 /* Create the audio player */ 244 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 247 /* Realizing the player in synchronous mode. */ 248 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); 252 res = (*player) [all...] |
/frameworks/av/cmds/stagefright/ |
H A D | codec.cpp | 443 sp<SimplePlayer> player = new SimplePlayer; local 444 looper->registerHandler(player); 446 player->setDataSource(argv[0]); 447 player->setSurface(surface->getIGraphicBufferProducer()); 448 player->start(); 450 player->stop(); 451 player->reset();
|
H A D | stream.cpp | 347 sp<IBinder> binder = sm->getService(String16("media.player")); 378 sp<IMediaPlayer> player = local 381 if (player != NULL && player->setDataSource(source) == NO_ERROR) { 382 player->setVideoSurfaceTexture(surface->getIGraphicBufferProducer()); 383 player->start(); 387 player->stop(); 389 fprintf(stderr, "failed to instantiate player.\n");
|
/frameworks/wilhelm/src/android/ |
H A D | android_GenericMediaPlayer.cpp | 28 // default delay in Us used when reposting an event when the player is not ready to accept 141 // only send video size updates if the player was flagged as having video, to avoid 263 sp<IMediaPlayer> player; local 264 getPreparedPlayer(player); 265 if (player != NULL) { 266 player->stop(); 269 //player->setDataSource(NULL); 270 player->setVideoSurfaceTexture(NULL); 271 player->disconnect(); 293 sp<IMediaPlayer> player; local 318 sp<IMediaPlayer> player; local [all...] |
H A D | android_StreamPlayer.cpp | 39 StreamPlayer * /* const sp<StreamPlayer> & */ player) : 43 mPlayer(player) 186 const sp<StreamPlayer> player(mPlayer.promote()); 187 if (player != NULL) { 189 player->seek(ANDROID_UNKNOWN_TIME); 265 const sp<StreamPlayer> player(mPlayer.promote()); 266 if (player != NULL) { 267 player->queueRefilled(); 367 * Asynchronously notify the player that the queue is ready to be pulled from. 370 // async notification that the ABQ was refilled: the player shoul 32 StreamSourceAppProxy( IAndroidBufferQueue *androidBufferQueue, const sp<CallbackProtector> &callbackProtector, StreamPlayer * player) argument [all...] |
/frameworks/wilhelm/tests/listening/ |
H A D | slesTest_playMuteSolo.cpp | 101 /* PlayItf callback for an audio player, will be called for every SL_PLAYEVENT_HEADATNEWPOS event */ 168 /* Objects this application uses: one player and an output mix */ 169 SLObjectItf player, outputMix; local 176 /* Data sinks for the audio player */ 180 /* Play, Volume and PrefetchStatus interfaces for the audio player */ 201 /* Create Output Mix object to be used by the player */ 216 /* Configuration of the player */ 237 /* Create the audio player */ 238 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 2, 242 /* Realize the player i [all...] |
/frameworks/wilhelm/tests/ |
H A D | mimeUri_test.cpp | 73 /* PrefetchStatusItf callback for an audio player */ 112 SLObjectItf player; local 137 // Create Output Mix object to be used by player 161 /* Create the audio player */ 162 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, 165 /* Realizing the player in synchronous mode. */ 166 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); 169 res = (*player)->GetInterface(player, SL_IID_PLA [all...] |
/frameworks/wilhelm/tests/sandbox/ |
H A D | monkey.c | 17 // single-threaded, single-player monkey test 46 typedef State_t (*Action_pt)(Player_pt player); 116 // create audio player 129 // realize the player 248 Player_t player; local 249 player.mObject = NULL; 250 player.mPlay = NULL; 251 player.mSeek = NULL; 285 State_t nextState = (*transitionTable[i].mAction)(&player);
|
/frameworks/wilhelm/tests/sandbox/streamSource/ |
H A D | slesTestPlayStream.cpp | 72 /* AndroidBufferQueueItf callback for an audio player */ 193 SLObjectItf player; local 222 // Create Output Mix object to be used by player 246 /* Create the audio player */ 247 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 250 /* Realizing the player in synchronous mode. */ 251 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); 255 res = (*player)->GetInterface(player, SL_IID_PLA [all...] |
/frameworks/support/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/ |
H A D | Playback.java | 51 // The volume we set the media player to when we lose audio focus, but are 54 // The volume we set the media player when we have audio focus. 175 // Starts preparing the media player in the background. When 178 // listener to 'this'). Until the media player is prepared, 202 // Pause media player and cancel the 'foreground service' state. 222 // If we do not have a current media player, simply update the current position 330 // If we are playing, we need to reset media player by calling configMediaPlayerState 362 * Called when media player is done playing current song. 367 public void onCompletion(MediaPlayer player) { argument 369 // The media player finishe 382 onPrepared(MediaPlayer player) argument [all...] |
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/ |
H A D | LocalPlayer.java | 72 // reset media player 98 // release media player 323 // just return if media player is already gone 379 public static final void setSurface(MediaPlayer player, Surface surface) { argument 380 player.setSurface(surface); 398 mLayout = (FrameLayout)((Activity)context).findViewById(R.id.player);
|
H A D | SampleMediaRouterActivity.java | 393 // Set up playback manager and player 504 // pause media player for local playback case only 514 // resume media player for local playback case only 778 public ControllerDialogFragment(Player player, CheckBox customControlViewCheckBox) { argument 779 mPlayer = player; 798 public void setPlayer(Player player) { argument 799 mPlayer = player;
|