Some docs

This commit is contained in:
Chris Cannam
2023-06-30 16:43:59 +01:00
parent 5935d17ee0
commit d2d8e48c91
3 changed files with 60 additions and 11 deletions

View File

@@ -43,14 +43,16 @@ R3LiveShifter::R3LiveShifter(Parameters parameters, Log log) :
m_guideConfiguration(m_guide.getConfiguration()),
m_channelAssembly(m_parameters.channels),
m_useReadahead(false),
m_contractThenExpand(false),
m_prevInhop(m_limits.maxInhopWithReadahead / 2),
m_prevOuthop(m_prevInhop),
m_contractThenExpand(false),
m_firstProcess(true),
m_unityCount(0)
{
Profiler profiler("R3LiveShifter::R3LiveShifter");
m_log.log(0, "WARNING: The RubberBandLiveShifter interface is in alpha test. It may fail to work correctly, or change at any time in the future. Use it at your own risk.");
initialise();
}

View File

@@ -44,6 +44,8 @@ BOOST_AUTO_TEST_SUITE(TestLiveShifter)
BOOST_AUTO_TEST_CASE(sinusoid_unchanged)
{
#ifdef TO_BE_CONTINUED
bool printDebug = true;
// bool printDebug = false;
@@ -106,7 +108,7 @@ BOOST_AUTO_TEST_CASE(sinusoid_unchanged)
if (printDebug) {
// The initial # is to allow grep on the test output
std::cout << "#sample\tV" << std::endl;
for (int i = 0; i < out.size(); ++i) {
for (int i = 0; i < int(out.size()); ++i) {
std::cout << "#" << i << "\t" << out[i] << std::endl;
}
}
@@ -114,10 +116,11 @@ BOOST_AUTO_TEST_CASE(sinusoid_unchanged)
if (printDebug) {
// The initial @ is to allow grep on the test output
std::cout << "@sample\tV" << std::endl;
for (int i = 0; i + delay < in.size(); ++i) {
for (int i = 0; i + delay < int(in.size()); ++i) {
std::cout << "@" << i << "\t" << out[i + delay] - in[i] << std::endl;
}
}
#endif
}
//!!!