Lines Matching refs:sinkConfig
842 AudioPortConfig sinkConfig = audioSink.activeConfig();
846 // If sinkConfig != null and values are set to default,
847 // fill in the sinkConfig values.
848 if (sinkConfig != null) {
850 sinkSamplingRate = sinkConfig.samplingRate();
853 sinkChannelMask = sinkConfig.channelMask();
856 sinkChannelMask = sinkConfig.format();
860 if (sinkConfig == null
861 || sinkConfig.samplingRate() != sinkSamplingRate
862 || sinkConfig.channelMask() != sinkChannelMask
863 || sinkConfig.format() != sinkFormat) {
875 sinkConfig = audioSink.buildConfig(sinkSamplingRate, sinkChannelMask,
879 sinkConfigs.add(sinkConfig);
883 AudioPortConfig sinkConfig = sinkConfigs.get(0);
886 if (intArrayContains(mAudioSource.samplingRates(), sinkConfig.samplingRate())) {
887 sourceSamplingRate = sinkConfig.samplingRate();
894 if (AudioFormat.channelCountFromOutChannelMask(sinkConfig.channelMask())
901 if (intArrayContains(mAudioSource.formats(), sinkConfig.format())) {
902 sourceFormat = sinkConfig.format();