Skip to content

Commit

Permalink
engine/audio: fixed audio decoder plugins Qt4 build
Browse files Browse the repository at this point in the history
  • Loading branch information
mcallegari committed Mar 9, 2016
1 parent 0486ae1 commit f2f994a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions engine/audio/plugins/mad/audiodecoder_mad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -564,3 +564,10 @@ qint64 AudioDecoderMAD::madOutput(char *data, qint64 size)
}
return m_output_bytes;
}

/*****************************************************************************
* Plugin export
****************************************************************************/
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
Q_EXPORT_PLUGIN2(audiodecodermad, AudioDecoderMAD)
#endif
7 changes: 7 additions & 0 deletions engine/audio/plugins/sndfile/audiodecoder_sndfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,10 @@ QStringList AudioDecoderSndFile::supportedFormats()

return caps;
}

/*****************************************************************************
* Plugin export
****************************************************************************/
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
Q_EXPORT_PLUGIN2(audiodecodersndfile, AudioDecoderSndFile)
#endif
2 changes: 2 additions & 0 deletions engine/audio/src/audioplugincache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ void AudioPluginCache::load(const QDir &dir)
m_pluginsPathList << path;
loader.unload();
}
else
qDebug() << "Failed to load plugin: " << loader.errorString();
}
}

Expand Down

0 comments on commit f2f994a

Please sign in to comment.