Fix issue 2378022: AudioService should direct volume control to STREAM_VOICE_CALL stream when STREAM_VOICE_CALL stream is active.

Modified AudioService.getActiveStreamType() so that STREAM_VOICE_CALL is selected when a track using this stream
type is playing.

Chanded isMusicActive() for a more generic isStreamActive(stream) method in AudioSystem, IAudioFlinger and AudioFlinger.
This commit is contained in:
Eric Laurent
2010-01-25 08:49:09 -08:00
parent bb04b631b6
commit 23f25cda0c
10 changed files with 29 additions and 27 deletions

View File

@@ -153,11 +153,11 @@ public class AudioSystem
}
/*
* Checks whether any music is active.
* Checks whether the specified stream type is active.
*
* return true if any music tracks are active.
* return true if any track playing on this stream is active.
*/
public static native boolean isMusicActive();
public static native boolean isStreamActive(int stream);
/*
* Sets a group generic audio configuration parameters. The use of these parameters