Add RTENTRY macro for STOAT testing

This commit is contained in:
Chris Cannam
2022-06-15 17:22:32 +01:00
parent 3865c780c0
commit 326f9b721d
2 changed files with 9 additions and 5 deletions

View File

@@ -45,6 +45,12 @@
# define R__
#endif
#ifdef __clang__
# define RTENTRY__ __attribute__((annotate("realtime")))
#else
# define RTENTRY__
#endif
#if defined(_MSC_VER)
# include <malloc.h>
# include <process.h>

View File

@@ -384,12 +384,10 @@ R3StretcherImpl::getSamplesRequired() const
}
}
//!!! __attribute__((annotate("realtime")))
RTENTRY__
void
R3StretcherImpl::process(const float *const *input, size_t samples, bool final)
{
//!!! todo: final
if (m_mode == ProcessMode::Finished) {
m_parameters.logger("R3StretcherImpl::process: Cannot process again after final chunk");
return;
@@ -432,7 +430,7 @@ R3StretcherImpl::process(const float *const *input, size_t samples, bool final)
consume();
}
//!!! __attribute__((annotate("realtime")))
RTENTRY__
int
R3StretcherImpl::available() const
{
@@ -444,7 +442,7 @@ R3StretcherImpl::available() const
}
}
//!!! __attribute__((annotate("realtime")))
RTENTRY__
size_t
R3StretcherImpl::retrieve(float *const *output, size_t samples) const
{