Measure rather than guess resampler delay

This commit is contained in:
Chris Cannam
2024-04-19 15:12:25 +01:00
parent 59d0ff6abe
commit 53ccb1d60e
2 changed files with 33 additions and 9 deletions

View File

@@ -317,6 +317,7 @@ protected:
ChannelAssembly m_channelAssembly;
std::unique_ptr<Resampler> m_inResampler;
std::unique_ptr<Resampler> m_outResampler;
int m_resamplerDelay;
bool m_useReadahead;
int m_prevInhop;
int m_prevOuthop;
@@ -331,6 +332,7 @@ protected:
int readOut(float *const *output, int outcount);
void createResamplers();
void measureResamplerDelay();
void analyseChannel(int channel, int inhop, int prevInhop, int prevOuthop);
void analyseFormant(int channel);
void adjustFormant(int channel);