aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/mad/decoder_mad.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-12-27 10:21:26 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-12-27 10:21:26 +0000
commit9dfbc84364ebb83fe318ddacdf1d9ad49e21671f (patch)
tree891d6d9298c708cdadcf6f86f23fd09ff17f9f7b /src/plugins/Input/mad/decoder_mad.cpp
parentb44a0720afd1c6796ae571cb7b45fe1b12cfa177 (diff)
downloadqmmp-9dfbc84364ebb83fe318ddacdf1d9ad49e21671f.tar.gz
qmmp-9dfbc84364ebb83fe318ddacdf1d9ad49e21671f.tar.bz2
qmmp-9dfbc84364ebb83fe318ddacdf1d9ad49e21671f.zip
ogg vorbis plugin: added replay gain support
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1457 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/mad/decoder_mad.cpp')
-rw-r--r--src/plugins/Input/mad/decoder_mad.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/plugins/Input/mad/decoder_mad.cpp b/src/plugins/Input/mad/decoder_mad.cpp
index f76ff9350..1e4fea68f 100644
--- a/src/plugins/Input/mad/decoder_mad.cpp
+++ b/src/plugins/Input/mad/decoder_mad.cpp
@@ -13,13 +13,12 @@
#include <math.h>
#include <stdio.h>
#include "tagextractor.h"
-#include "replaygainreader.h"
#include "decoder_mad.h"
#define XING_MAGIC (('X' << 24) | ('i' << 16) | ('n' << 8) | 'g')
#define INPUT_BUFFER_SIZE (32*1024)
-DecoderMAD::DecoderMAD(const QString &url, QIODevice *i) : Decoder(i)
+DecoderMAD::DecoderMAD(QIODevice *i) : Decoder(i)
{
m_inited = false;
m_totalTime = 0;
@@ -33,7 +32,6 @@ DecoderMAD::DecoderMAD(const QString &url, QIODevice *i) : Decoder(i)
m_output_at = 0;
m_skip_frames = 0;
m_eof = false;
- m_url = url;
}
DecoderMAD::~DecoderMAD()
@@ -98,15 +96,7 @@ bool DecoderMAD::initialize()
mad_frame_mute (&frame);
stream.next_frame = 0;
stream.sync = 0;
-
- if(!m_url.contains("://"))
- {
- ReplayGainReader rg(m_url);
- configure(m_freq, m_channels, 16, rg.replayGainInfo());
- }
- else
- configure(m_freq, m_channels, 16);
-
+ configure(m_freq, m_channels, 16);
m_inited = TRUE;
return TRUE;
}