• Home
  • Raw
  • Download

Lines Matching refs:streamConfig

88 bool SubmixRoute::isStreamConfigValid(bool isInput, const AudioConfig& streamConfig) {  in isStreamConfigValid()  argument
96 if (hasAtleastOneStreamOpen() && !isStreamConfigCompatible(streamConfig)) { in isStreamConfigValid()
104 bool SubmixRoute::isStreamConfigCompatible(const AudioConfig& streamConfig) { in isStreamConfigCompatible() argument
106 if (streamConfig.channelLayout != mPipeConfig.channelLayout) { in isStreamConfigCompatible()
108 << streamConfig.channelLayout.toString() in isStreamConfigCompatible()
112 if (streamConfig.sampleRate != mPipeConfig.sampleRate) { in isStreamConfigCompatible()
114 << ": sample rate mismatch, stream sample rate = " << streamConfig.sampleRate in isStreamConfigCompatible()
118 if (streamConfig.format != mPipeConfig.format) { in isStreamConfigCompatible()
120 << ": format mismatch, stream format = " << streamConfig.format.toString() in isStreamConfigCompatible()
184 ::android::status_t SubmixRoute::createPipe(const AudioConfig& streamConfig) { in createPipe() argument
185 const int channelCount = getChannelCount(streamConfig.channelLayout); in createPipe()
187 aidl2legacy_AudioFormatDescription_audio_format_t(streamConfig.format)); in createPipe()
189 ::android::Format_from_SR_C(streamConfig.sampleRate, channelCount, audioFormat); in createPipe()
195 ((float)streamConfig.sampleRate / r_submix::kDefaultSampleRateHz); in createPipe()
196 LOG(VERBOSE) << __func__ << ": creating pipe, rate : " << streamConfig.sampleRate in createPipe()
224 LOG(VERBOSE) << __func__ << ": Pipe frame size : " << streamConfig.frameSize in createPipe()
230 mPipeConfig = streamConfig; in createPipe()