diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2017-04-29 20:17:23 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2017-04-29 20:17:23 +0000 |
| commit | 1ba41aa59308259a23f784717a9e774433ea86b6 (patch) | |
| tree | 43026094a52597e9b7980509f18a4404e1b039e0 /src | |
| parent | 8bd2f891c7007dc974e8298f84f5fbb354aebb26 (diff) | |
| download | qmmp-1ba41aa59308259a23f784717a9e774433ea86b6.tar.gz qmmp-1ba41aa59308259a23f784717a9e774433ea86b6.tar.bz2 qmmp-1ba41aa59308259a23f784717a9e774433ea86b6.zip | |
limit maximum visualization delay
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7138 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src')
| -rw-r--r-- | src/qmmp/visualbuffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmmp/visualbuffer.cpp b/src/qmmp/visualbuffer.cpp index bf7140ab6..6d081d598 100644 --- a/src/qmmp/visualbuffer.cpp +++ b/src/qmmp/visualbuffer.cpp @@ -61,7 +61,7 @@ void VisualBuffer::add(float *pcm, int samples, int channels, qint64 ts, qint64 VisualNode *b = &m_buffer[m_add_index]; stereo_from_multichannel(b->data[0], b->data[1], pcm, qMin(512, samples / channels), channels); b->ts = ts; - delay = qMax(delay, 50LL); //leave at least 50 ms for the visualization + delay = qBound(50LL, delay, 1000LL); //limit visualization delay m_elapsed = qMax(0LL, ts - delay); m_time.restart(); } |
