summaryrefslogtreecommitdiffstats
path: root/core/java/android/speech
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2014-07-18 18:45:32 -0700
committerJean-Michel Trivi <jmtrivi@google.com>2014-07-20 11:25:48 -0700
commit289cc8e887f786f557faab226a1e01abb9a632a6 (patch)
treee6c04ca5b1c525bbebca4357b4eb01c183f2584f /core/java/android/speech
parent3d63a9c7cd3f03ebcf67cc1bc3d53ada8a6ef577 (diff)
downloadframeworks_base-289cc8e887f786f557faab226a1e01abb9a632a6.zip
frameworks_base-289cc8e887f786f557faab226a1e01abb9a632a6.tar.gz
frameworks_base-289cc8e887f786f557faab226a1e01abb9a632a6.tar.bz2
API for audio session ID generation
Expose the value used by the framework to generate an audio session ID when a value isn't known. Rename allocateAudioSessionId() to generateAudioSessionId() as this operation doesn't "allocate" anything, and there is no allocated resource to free after this operation. Bug 16401631 Change-Id: I7a7bc05b39ea0b024ff225254eb755a9c85a2ad9
Diffstat (limited to 'core/java/android/speech')
-rw-r--r--core/java/android/speech/tts/TextToSpeech.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/speech/tts/TextToSpeech.java b/core/java/android/speech/tts/TextToSpeech.java
index d8b9b5f..0075d0b 100644
--- a/core/java/android/speech/tts/TextToSpeech.java
+++ b/core/java/android/speech/tts/TextToSpeech.java
@@ -604,7 +604,7 @@ public class TextToSpeech {
/**
* Parameter key to specify an audio session identifier (obtained from
- * {@link AudioManager#allocateAudioSessionId()}) that will be used by the request audio
+ * {@link AudioManager#generateAudioSessionId()}) that will be used by the request audio
* output. It can be used to associate one of the {@link android.media.audiofx.AudioEffect}
* objects with the synthesis (or earcon) output.
*