We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddeb427 commit 8c53fd8Copy full SHA for 8c53fd8
src/djinterop/engine/v1/engine_track_impl.cpp
@@ -244,6 +244,11 @@ high_res_waveform_data to_high_res_waveform_data(
244
std::optional<double> sample_rate,
245
const std::vector<waveform_entry>& waveform)
246
{
247
+ if (!sample_count || !sample_rate)
248
+ {
249
+ return high_res_waveform_data{0};
250
+ }
251
+
252
// Make the assumption that the client has respected the required number
253
// of samples per entry when constructing the waveform.
254
auto extents = util::calculate_high_resolution_waveform_extents(
0 commit comments