OSDN Git Service

Fix bug 3004701 do not prefetch during Realize.
authorJean-Michel Trivi <jmtrivi@google.com>
Tue, 28 Sep 2010 00:12:52 +0000 (17:12 -0700)
committerJean-Michel Trivi <jmtrivi@google.com>
Tue, 28 Sep 2010 16:32:25 +0000 (09:32 -0700)
commitb8e52590d14863805bc1ba9d58efa95cbf8ae302
treec365775b0673ea1a2c6586d2d7a4b99e3bfee01a
parent0673981b5807e901fc8f025052bcac0ac3654a7f
Fix bug 3004701 do not prefetch during Realize.

Removed unused Android object states in enum, not used in
 play state machine.
Made SfPlayer responsible for the creation of its
 AudioTrack once it knows the sample rate and number of
 channels of the content to play once it's done
 preparing.
Added notification from SfPlayer to signal when it's
 done preparing. This informs of the audio characteristics
 and kicks off the content prefetching.
In the AudioPlayer realize:
 - do not start the prefetching, do it when the player
  is set to PAUSED
 - don not create the AudioTrack, do it when SfPlayer
  is done preparing.

Change-Id: Ic345040e71cef0e5953ea47366930d1dfbc5e761
opensles/libopensles/android_AudioPlayer.cpp
opensles/libopensles/android_SfPlayer.cpp
opensles/libopensles/android_SfPlayer.h
opensles/libopensles/android_prompts.h
opensles/libopensles/sles_allinclusive.h
opensles/tests/mimeUri/Android.mk