Skip to content

Commit

Permalink
Fix order of channels in Audio Peak Meter.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Apr 1, 2015
1 parent 3701b3e commit b1cd958
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/widgets/scopes/audiopeakmeterscopewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ void AudioPeakMeterScopeWidget::refreshScope(const QSize& /*size*/, bool /*full*
m_filter->process(mFrame);
mFrame.get_audio( format, frequency, channels, samples );
QVector<double> levels;
while (channels--) {
QString s = QString("meta.media.audio_level.%1").arg(channels);
for (int i = 0; i < channels; i++) {
QString s = QString("meta.media.audio_level.%1").arg(i);
levels << mFrame.get_double(s.toLatin1().constData());
}
QMetaObject::invokeMethod(m_audioSignal, "slotAudioLevels", Qt::QueuedConnection, Q_ARG(const QVector<double>&, levels));
Expand Down

0 comments on commit b1cd958

Please sign in to comment.