mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 18:56:55 +02:00
remove the timing for twopole testing
This commit is contained in:
parent
5acb0bd1a3
commit
8cef77bbda
1 changed files with 0 additions and 6 deletions
|
@ -298,8 +298,6 @@ int main(int argc, const char* argv[]) {
|
||||||
? otherAgentBuffer->getBuffer() + RING_BUFFER_LENGTH_SAMPLES - numSamplesDelay
|
? otherAgentBuffer->getBuffer() + RING_BUFFER_LENGTH_SAMPLES - numSamplesDelay
|
||||||
: otherAgentBuffer->getNextOutput() - numSamplesDelay;
|
: otherAgentBuffer->getNextOutput() - numSamplesDelay;
|
||||||
|
|
||||||
gettimeofday(&twoPoleStart, NULL);
|
|
||||||
|
|
||||||
for (int s = 0; s < BUFFER_LENGTH_SAMPLES_PER_CHANNEL; s++) {
|
for (int s = 0; s < BUFFER_LENGTH_SAMPLES_PER_CHANNEL; s++) {
|
||||||
// load up the stkFrameBuffer with this source's samples
|
// load up the stkFrameBuffer with this source's samples
|
||||||
stkFrameBuffer[s] = (stk::StkFloat) sourceBuffer[s];
|
stkFrameBuffer[s] = (stk::StkFloat) sourceBuffer[s];
|
||||||
|
@ -310,10 +308,6 @@ int main(int argc, const char* argv[]) {
|
||||||
otherAgentTwoPole->tick(stkFrameBuffer);
|
otherAgentTwoPole->tick(stkFrameBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
gettimeofday(&twoPoleEnd, NULL);
|
|
||||||
|
|
||||||
printf("Time taken for TP: %lld\n", usecTimestamp(&twoPoleEnd) - usecTimestamp(&twoPoleStart));
|
|
||||||
|
|
||||||
for (int s = 0; s < BUFFER_LENGTH_SAMPLES_PER_CHANNEL; s++) {
|
for (int s = 0; s < BUFFER_LENGTH_SAMPLES_PER_CHANNEL; s++) {
|
||||||
if (s < numSamplesDelay) {
|
if (s < numSamplesDelay) {
|
||||||
// pull the earlier sample for the delayed channel
|
// pull the earlier sample for the delayed channel
|
||||||
|
|
Loading…
Reference in a new issue