-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi assertion when running sh run_device_tests.sh
#61
Comments
It passes all the time here, what is your configuration? I have blackhole installed and that's about it, I'm on 10.15. |
It also passes with my Focusrite Scarlett 6i6 first gen, aggregate, non aggregate, tweaking the various input and output sample-rates, etc. Can you repro this? |
I cannot reproduce it today. Weird I used builtin mic and speaker and soundflower. I am also on 10.15. Rust version is rustc 1.43.0-nightly (2c462a2f7 2020-02-20) |
I got some after running
|
I printed the
when running All the Full log for running 1 test Device change callback. data @ 0x7ffc60300060 test backend::tests::device_change::test_destroy_output_stream_after_unplugging_a_default_output_device ... ok The diff to print the log is here: diff --git a/src/cubeb_resampler_internal.h b/src/cubeb_resampler_internal.h
index fb69992..f687268 100644
--- a/src/cubeb_resampler_internal.h
+++ b/src/cubeb_resampler_internal.h
@@ -8,6 +8,7 @@
#if !defined(CUBEB_RESAMPLER_INTERNAL)
#define CUBEB_RESAMPLER_INTERNAL
+#include <cstdio>
#include <cmath>
#include <cassert>
#include <algorithm>
@@ -248,12 +249,15 @@ public:
resampling_out_buffer.reserve(frames_to_samples(output_frame_count));
}
+ fprintf(stderr, "output_frame_count: %zu\n", output_frame_count);
uint32_t in_len = samples_to_frames(resampling_in_buffer.length());
+ fprintf(stderr, "in_len: %d\n", in_len);
uint32_t out_len = output_frame_count;
speex_resample(resampling_in_buffer.data(), &in_len,
resampling_out_buffer.data(), &out_len);
+ fprintf(stderr, "out_len: %d\n", out_len);
assert(out_len == output_frame_count);
/* This shifts back any unresampled samples to the beginning of the input |
Those tests are based on |
I see. We get the device callback before that, so we should be able to prevent this. |
The assertion is hit when running
sh run_device_tests.sh
The text was updated successfully, but these errors were encountered: