]> git.sesse.net Git - nageru/blobdiff - nageru/benchmark_audio_mixer.cpp
Remove the unused frame_length parameter to AudioMixer::add_audio().
[nageru] / nageru / benchmark_audio_mixer.cpp
index 7ec3450dc60d942d617cbfeff0210f58a9b4ddc5..edb4955335f30ec7b734a32a27a88ff19a94b1cc 100644 (file)
@@ -73,7 +73,7 @@ vector<float> process_frame(unsigned frame_num, AudioMixer *mixer)
                unsigned num_samples = NUM_SAMPLES + (lcgrand() % 9) - 5;
                bool ok = mixer->add_audio(DeviceSpec{InputSourceType::CAPTURE_CARD, card_index},
                        card_index == 3 ? samples24 : samples16, num_samples, audio_format,
-                       NUM_SAMPLES * TIMEBASE / OUTPUT_FREQUENCY, ts);
+                       ts);
                assert(ok);
        }