mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Move AudioAttributes to common module
PiperOrigin-RevId: 317864048
This commit is contained in:
parent
9d8f54ab3a
commit
3eac5b4328
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2017 The Android Open Source Project
|
* Copyright 2017 The Android Open Source Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -21,14 +21,14 @@ import com.google.android.exoplayer2.C;
|
|||||||
import com.google.android.exoplayer2.util.Util;
|
import com.google.android.exoplayer2.util.Util;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Attributes for audio playback, which configure the underlying platform
|
* Attributes for audio playback, which configure the underlying platform {@link
|
||||||
* {@link android.media.AudioTrack}.
|
* android.media.AudioTrack}.
|
||||||
* <p>
|
*
|
||||||
* To set the audio attributes, create an instance using the {@link Builder} and either pass it to
|
* <p>To set the audio attributes, create an instance using the {@link Builder} and either pass it
|
||||||
* {@link com.google.android.exoplayer2.SimpleExoPlayer#setAudioAttributes(AudioAttributes)} or
|
* to the player or send a message of type {@link C#MSG_SET_AUDIO_ATTRIBUTES} to the audio
|
||||||
* send a message of type {@link C#MSG_SET_AUDIO_ATTRIBUTES} to the audio renderers.
|
* renderers.
|
||||||
* <p>
|
*
|
||||||
* This class is based on {@link android.media.AudioAttributes}, but can be used on all supported
|
* <p>This class is based on {@link android.media.AudioAttributes}, but can be used on all supported
|
||||||
* API versions.
|
* API versions.
|
||||||
*/
|
*/
|
||||||
public final class AudioAttributes {
|
public final class AudioAttributes {
|
Loading…
x
Reference in New Issue
Block a user