// Copyright 2022 The ChromiumOS Authors1// Use of this source code is governed by a BSD-style license that can be2// found in the LICENSE file.34use audio_streams::NoopStreamSourceGenerator;56use crate::virtio::snd::common_backend::SndData;7use crate::virtio::snd::sys::SysAudioStreamSourceGenerator;89pub(crate) fn create_null_stream_source_generators(10snd_data: &SndData,11) -> Vec<SysAudioStreamSourceGenerator> {12let mut generators: Vec<SysAudioStreamSourceGenerator> = Vec::new();13generators.resize_with(snd_data.pcm_info_len(), || {14Box::new(NoopStreamSourceGenerator::new())15});16generators17}181920