public abstract class

AudioSource.Settings.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.camera.video.internal.AudioSource.Settings.Builder

Overview

A Builder for AudioSource.Settings

Summary

Methods
public final AudioSource.Settingsbuild()

Returns the built config after performing settings validation.

public abstract AudioSource.Settings.BuildersetAudioFormat(int audioFormat)

Sets the audio format.

public abstract AudioSource.Settings.BuildersetAudioSource(int audioSource)

Sets the device audio source.

public abstract AudioSource.Settings.BuildersetChannelCount(int channelCount)

Sets the channel count.

public abstract AudioSource.Settings.BuildersetSampleRate(int sampleRate)

Sets the audio sample rate in Hertz.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods

public abstract AudioSource.Settings.Builder setAudioSource(int audioSource)

Sets the device audio source.

See also:

public abstract AudioSource.Settings.Builder setSampleRate(int sampleRate)

Sets the audio sample rate in Hertz.

public abstract AudioSource.Settings.Builder setChannelCount(int channelCount)

Sets the channel count.

public abstract AudioSource.Settings.Builder setAudioFormat(int audioFormat)

Sets the audio format.

See also:

public final AudioSource.Settings build()

Returns the built config after performing settings validation.

It should be verified that combination of sample rate, channel count and audio format is supported by AudioSource.isSettingsSupported(int, int, int) or an java.lang.UnsupportedOperationException will be thrown when passing the settings to the AudioSource constructor.