From 9dfbc84364ebb83fe318ddacdf1d9ad49e21671f Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 27 Dec 2009 10:21:26 +0000 Subject: 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 --- src/plugins/Input/mad/decoder_mad.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'src/plugins/Input/mad/decoder_mad.cpp') 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 #include #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; } -- cgit v1.2.3-13-gbd6f