MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / read_and_mix_wavs_to_reference_shape

Function read_and_mix_wavs_to_reference_shape

src/framework/audio/mixing.cpp:233–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233WavData read_and_mix_wavs_to_reference_shape(
234 const std::vector<std::pair<std::filesystem::path, float>> & inputs,
235 bool normalize_peak) {
236 std::vector<AudioMixInput> loaded;
237 loaded.reserve(inputs.size());
238 for (const auto & [path, gain] : inputs) {
239 loaded.push_back(AudioMixInput{read_wav_f32(path), gain});
240 }
241 return mix_audio_to_reference_shape(loaded, normalize_peak);
242}
243
244} // namespace engine::audio

Callers

nothing calls this directly

Calls 3

read_wav_f32Function · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected