From 289cc8e887f786f557faab226a1e01abb9a632a6 Mon Sep 17 00:00:00 2001 From: Jean-Michel Trivi Date: Fri, 18 Jul 2014 18:45:32 -0700 Subject: 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 --- core/java/android/speech/tts/TextToSpeech.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/java/android/speech') 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. * -- cgit v1.1