Skip to content

Commit

Permalink
Try to reduce latency.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiw authored Nov 30, 2024
1 parent c245394 commit 4970530
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pipeline/ResampleStep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,19 @@ ResampleStep::ResampleStep(int inputSampleRate, int outputSampleRate)
{
soxr_io_spec_t ioSpec = soxr_io_spec(SOXR_INT16_I, SOXR_INT16_I);
soxr_quality_spec_t qualSpec = soxr_quality_spec(SOXR_HQ, 0);
soxr_runtime_spec_t runtimeSpec = soxr_runtime_spec(1);

runtimeSpec.log2_min_dft_size = 8;
runtimeSpec.log2_large_dft_size = 12;

resampleState_ = soxr_create(
inputSampleRate_,
outputSampleRate_,
1,
nullptr,
&ioSpec,
&qualSpec,
nullptr // soxr_runtime_spec(1)
&runtimeSpec
);
assert(resampleState_ != nullptr);
}
Expand Down

0 comments on commit 4970530

Please sign in to comment.