Package org.robolectric.shadows
Class AudioProfileBuilder
java.lang.Object
org.robolectric.shadows.AudioProfileBuilder
Builder for
AudioProfile.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static AudioProfileBuildersetChannelIndexMasks(int[] channelIndexMasks) Sets the channel index masks.setChannelMasks(int[] channelMasks) Sets the channel masks.setEncapsulationType(int encapsulationType) Sets the encapsulation type.setFormat(int format) Sets the audio format.setSamplingRates(int[] samplingRates) Sets the sampling rates.
-
Method Details
-
newBuilder
-
setFormat
Sets the audio format.The default is
AudioFormat.ENCODING_PCM_16BIT.- Parameters:
format- The audio format. The possible values are theENCODING_constants defined inAudioFormat.
-
setSamplingRates
Sets the sampling rates.The default is a single-item array with 48000.
- Parameters:
samplingRates- The array of supported sampling rates.
-
setChannelMasks
Sets the channel masks.The default is a single-item array with
AudioFormat.CHANNEL_OUT_STEREO.- Parameters:
channelMasks- The array of supported channel masks. The possible values are theCHANNEL_OUT_constants defined inAudioFormat.
-
setChannelIndexMasks
Sets the channel index masks.The default is an empty array.
- Parameters:
channelIndexMasks- The array of supported channel index masks.
-
setEncapsulationType
Sets the encapsulation type.The default is
AudioProfile.AUDIO_ENCAPSULATION_TYPE_NONE.- Parameters:
encapsulationType- The encapsulation type. The possible values are theAUDIO_ENCAPSULATION_TYPE_constants defined inAudioProfile.
-
build
-