Lines Matching refs:AudioFormat

27  * The {@link AudioFormat} class is used to access a number of audio format and
31 * parameter is one of the <code>AudioFormat.ENCODING_*</code> constants.
32 * The <code>AudioFormat</code> constants are also used in {@link MediaFormat} to specify
34 * <p>The {@link AudioFormat.Builder} class can be used to create instances of
35 * the <code>AudioFormat</code> format class.
37 * {@link AudioFormat.Builder} for documentation on the mechanics of the configuration and building
38 * of such instances. Here we describe the main concepts that the <code>AudioFormat</code> class
45 * <p>Closely associated with the <code>AudioFormat</code> is the notion of an
50 * <p>Expressed in Hz, the sample rate in an <code>AudioFormat</code> instance expresses the number
212 public class AudioFormat {
516 public AudioFormat()
525 private AudioFormat(int ignoredArgument) {
533 private AudioFormat(int encoding, int sampleRate, int channelMask, int channelIndexMask) {
566 * {@link AudioFormat#ENCODING_INVALID} if not set.
593 * {@link AudioFormat#CHANNEL_INVALID} if not set.
608 * {@link AudioFormat#CHANNEL_INVALID} if not set or an invalid mask was used.
639 * Builder class for {@link AudioFormat} objects.
640 * Use this class to configure and create an AudioFormat instance. By setting format
643 * is used. See {@link AudioFormat} for a complete description of the different parameters that
644 * can be used to configure an <code>AudioFormat</code> instance.
645 * <p>{@link AudioFormat} is for instance used in
646 * {@link AudioTrack#AudioTrack(AudioAttributes, AudioFormat, int, int, int)}. In this
667 * Constructs a new Builder from a given {@link AudioFormat}.
668 * @param af the {@link AudioFormat} object whose data will be reused in the new Builder.
670 public Builder(AudioFormat af) {
680 * {@link AudioFormat} object.
681 * @return a new {@link AudioFormat} object
683 public AudioFormat build() {
684 AudioFormat af = new AudioFormat(1980/*ignored*/);
695 * @param encoding one of {@link AudioFormat#ENCODING_DEFAULT},
696 * {@link AudioFormat#ENCODING_PCM_8BIT},
697 * {@link AudioFormat#ENCODING_PCM_16BIT},
698 * {@link AudioFormat#ENCODING_PCM_FLOAT},
699 * {@link AudioFormat#ENCODING_AC3},
700 * {@link AudioFormat#ENCODING_E_AC3}.
701 * {@link AudioFormat#ENCODING_DTS},
702 * {@link AudioFormat#ENCODING_DTS_HD}.
739 * {@link AudioFormat#CHANNEL_OUT_FRONT_LEFT},
740 * {@link AudioFormat#CHANNEL_OUT_FRONT_RIGHT},
741 * {@link AudioFormat#CHANNEL_OUT_FRONT_CENTER},
742 * {@link AudioFormat#CHANNEL_OUT_LOW_FREQUENCY}
743 * {@link AudioFormat#CHANNEL_OUT_BACK_LEFT},
744 * {@link AudioFormat#CHANNEL_OUT_BACK_RIGHT},
745 * {@link AudioFormat#CHANNEL_OUT_BACK_CENTER},
746 * {@link AudioFormat#CHANNEL_OUT_SIDE_LEFT},
747 * {@link AudioFormat#CHANNEL_OUT_SIDE_RIGHT}.
753 * {@link AudioFormat#CHANNEL_IN_MONO} or
754 * {@link AudioFormat#CHANNEL_IN_STEREO}. {@link AudioFormat#CHANNEL_IN_MONO} is
845 return new String("AudioFormat:"