diff options
| -rw-r--r-- | src/qmmp/audioparameters.h | 3 | ||||
| -rw-r--r-- | src/qmmp/decoder.h | 7 | ||||
| -rw-r--r-- | src/qmmpui/metadataformatter.h | 9 |
3 files changed, 16 insertions, 3 deletions
diff --git a/src/qmmp/audioparameters.h b/src/qmmp/audioparameters.h index 94e113eca..ac229af6b 100644 --- a/src/qmmp/audioparameters.h +++ b/src/qmmp/audioparameters.h @@ -66,6 +66,9 @@ public: * Returns number of channels. */ int channels() const; + /*! + * Returns channel map. + */ const ChannelMap channelMap() const; /*! * Returns pcm format. diff --git a/src/qmmp/decoder.h b/src/qmmp/decoder.h index 38c65967c..59e461327 100644 --- a/src/qmmp/decoder.h +++ b/src/qmmp/decoder.h @@ -179,7 +179,12 @@ protected: * @param f Audio format. */ void configure(quint32 srate, const ChannelMap &map, Qmmp::AudioFormat f = Qmmp::PCM_S16LE); - + /*! + * Use this function inside initialize() reimplementation to tell other plugins about audio parameters. + * @param srate Sample rate. + * @param channels Number of channels (internal channel sequence). + * @param f Audio format. + */ void configure(quint32 srate, int channels, Qmmp::AudioFormat f = Qmmp::PCM_S16LE); private: diff --git a/src/qmmpui/metadataformatter.h b/src/qmmpui/metadataformatter.h index 2ea6ce045..8f841ba9f 100644 --- a/src/qmmpui/metadataformatter.h +++ b/src/qmmpui/metadataformatter.h @@ -55,9 +55,14 @@ public: * %if(A,B,C) or %if(A&B&C,D,E) - condition. */ MetaDataFormatter(const QString &pattern = QString()); - + /*! + * Setups metadata template. + * @param pattern Metadata template string. + */ void setPattern(const QString &pattern); - + /*! + * Returns metadata template. + */ const QString pattern() const; /*! |
