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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user