use Legacy Api
Specifies attributes as inferred from the legacy stream types. Defaults to False Warning: When this value is true any other attributes such as usage, content type, flags or haptic control will be ignored.
See also
<a href="https://developer.android.com/reference/android/media/AudioAttributes.Builder#setLegacyStreamType(int)">Legacy stream type documentation</a>