Mercurial > hg > svgui
comparison layer/TimeValueLayer.cpp @ 353:de4db9b5dcf1
* More latency for PortAudio output
* ...
author | Chris Cannam |
---|---|
date | Thu, 24 Jan 2008 22:49:19 +0000 |
parents | ffa448b0e1bc |
children | 020c485aa7e0 |
comparison
equal
deleted
inserted
replaced
352:25e72328a897 | 353:de4db9b5dcf1 |
---|---|
538 if (!m_model || !m_model->isOK()) return; | 538 if (!m_model || !m_model->isOK()) return; |
539 | 539 |
540 int sampleRate = m_model->getSampleRate(); | 540 int sampleRate = m_model->getSampleRate(); |
541 if (!sampleRate) return; | 541 if (!sampleRate) return; |
542 | 542 |
543 paint.setRenderHint(QPainter::Antialiasing, false); | |
544 | |
543 // Profiler profiler("TimeValueLayer::paint", true); | 545 // Profiler profiler("TimeValueLayer::paint", true); |
544 | 546 |
545 int x0 = rect.left(), x1 = rect.right(); | 547 int x0 = rect.left(), x1 = rect.right(); |
546 long frame0 = v->getFrameForX(x0); | 548 long frame0 = v->getFrameForX(x0); |
547 long frame1 = v->getFrameForX(x1); | 549 long frame1 = v->getFrameForX(x1); |