diff options
author | James Dong <jdong@google.com> | 2010-06-03 11:27:19 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-06-03 11:27:19 -0700 |
commit | c40209ac60a64a7c08b0d0028060d5308fd7a0b8 (patch) | |
tree | d4127ea5aa2536ce18734229be5497054b558388 /media/java | |
parent | ee7e6a78e28b360826f215e0e84d43b1513b6401 (diff) | |
parent | 28a92b2e76a13c18dc23e5239717b122a174182f (diff) | |
download | frameworks_base-c40209ac60a64a7c08b0d0028060d5308fd7a0b8.zip frameworks_base-c40209ac60a64a7c08b0d0028060d5308fd7a0b8.tar.gz frameworks_base-c40209ac60a64a7c08b0d0028060d5308fd7a0b8.tar.bz2 |
am 28a92b2e: Merge "Fix a Javadoc to clarify when setAudioStreamType() should be called." into froyo
Merge commit '28a92b2e76a13c18dc23e5239717b122a174182f' into froyo-plus-aosp
* commit '28a92b2e76a13c18dc23e5239717b122a174182f':
Fix a Javadoc to clarify when setAudioStreamType() should be called.
Diffstat (limited to 'media/java')
-rw-r--r-- | media/java/android/media/MediaPlayer.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/media/java/android/media/MediaPlayer.java b/media/java/android/media/MediaPlayer.java index 8f6564a..7672f0f 100644 --- a/media/java/android/media/MediaPlayer.java +++ b/media/java/android/media/MediaPlayer.java @@ -344,7 +344,9 @@ import java.lang.ref.WeakReference; * <td>{Idle, Initialized, Stopped, Prepared, Started, Paused, * PlaybackCompleted}</p></td> * <td>{Error}</p></td> - * <td>Successful invoke of this method does not change the state.</p></td></tr> + * <td>Successful invoke of this method does not change the state. In order for the + * target audio stream type to become effective, this method must be called before + * prepare() or prepareAsync().</p></td></tr> * <tr><td>setDataSource </p></td> * <td>{Idle} </p></td> * <td>{Initialized, Prepared, Started, Paused, Stopped, PlaybackCompleted, @@ -1112,7 +1114,9 @@ public class MediaPlayer /** * Sets the audio stream type for this MediaPlayer. See {@link AudioManager} - * for a list of stream types. + * for a list of stream types. Must call this method before prepare() or + * prepareAsync() in order for the target stream type to become effective + * thereafter. * * @param streamtype the audio stream type * @see android.media.AudioManager |