OSDN Git Service

Fix issues with SLPlaybackRateItf interface
authorJean-Michel Trivi <jmtrivi@google.com>
Wed, 29 Sep 2010 01:08:55 +0000 (18:08 -0700)
committerJean-Michel Trivi <jmtrivi@google.com>
Wed, 29 Sep 2010 16:37:30 +0000 (09:37 -0700)
commit67537364adc48cd6fa56e36d4201428b5d9dedaf
tree7c908dc3f54e285a69189bf71b29a2a62a173127
parent3dbc7f94e5273737f68cf42898945b3ce92b565e
Fix issues with SLPlaybackRateItf interface

Set rate was not applied when the AudioTrack is created after
 prepare completed.
Modified playback rate functions in AudioPlayer to pass a
 CAudioPlayer pointer, rather than a pointer to IPlaybackRate
 so the rate update function can be queried from the CAudioPlayer.
Added test that exercises the SLPlaybackRateItf interface as
 well as content looping.
Simplified evaluation of delay between decode and render to
 use a fixed (small) delay that balances time to run the
 event looper, and prevents clicks.

Change-Id: I598e9a96e93ef7a7c3603c8467f9d6b36dacd26d
opensles/libopensles/Android.mk
opensles/libopensles/IPlaybackRate.c
opensles/libopensles/android_AudioPlayer.cpp
opensles/libopensles/android_AudioPlayer.h
opensles/libopensles/android_SfPlayer.cpp
opensles/libopensles/android_SfPlayer.h
opensles/libopensles/android_prompts.h
opensles/libopensles/classes.c
opensles/libopensles/sles.c
opensles/tests/mimeUri/Android.mk
opensles/tests/mimeUri/slesTestSlowDownUri.cpp [new file with mode: 0644]