diff options
author | James Dong <jdong@google.com> | 2010-06-03 11:30:03 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-06-03 11:30:03 -0700 |
commit | 57ad07039a63e8454d8a73cdce9c5e269f13205c (patch) | |
tree | bb20fd9bd00f3127b8d44f69e24c7855742269ef /media/java | |
parent | 15fe2cb73b0770316db302f6502f568062d68e74 (diff) | |
parent | c40209ac60a64a7c08b0d0028060d5308fd7a0b8 (diff) | |
download | frameworks_base-57ad07039a63e8454d8a73cdce9c5e269f13205c.zip frameworks_base-57ad07039a63e8454d8a73cdce9c5e269f13205c.tar.gz frameworks_base-57ad07039a63e8454d8a73cdce9c5e269f13205c.tar.bz2 |
am c40209ac: am 28a92b2e: Merge "Fix a Javadoc to clarify when setAudioStreamType() should be called." into froyo
Merge commit 'c40209ac60a64a7c08b0d0028060d5308fd7a0b8' into kraken
* commit 'c40209ac60a64a7c08b0d0028060d5308fd7a0b8':
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 |