summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/encoderlame.h
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-08-20 18:41:17 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-11-06 21:13:32 +0100
commit07604d62ab375e5c4f42bd05704ace608600c478 (patch)
tree2564d760c71b6036cef730097fabf205508bc4ba /rbutil/rbutilqt/base/encoderlame.h
parentbb7aa6f3115c83d47851688b3482f3fa1c2ab32f (diff)
downloadrockbox-07604d62ab.tar.gz
rockbox-07604d62ab.tar.bz2
rockbox-07604d62ab.zip
rbutil: Command line fallback on libmp3lame failure.
When loading libmp3lame fails fall back to using the command line lame. Avoids an unresolvable error when trying to create voice / talk files for Archos. Modernize code a bit. Change-Id: I2e8fd5786fda972cb24adbcb9ced531e08093b4f
Diffstat (limited to 'rbutil/rbutilqt/base/encoderlame.h')
-rw-r--r--rbutil/rbutilqt/base/encoderlame.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/base/encoderlame.h b/rbutil/rbutilqt/base/encoderlame.h
index a8651f0cda..a5f1b2d3f4 100644
--- a/rbutil/rbutilqt/base/encoderlame.h
+++ b/rbutil/rbutilqt/base/encoderlame.h
@@ -34,7 +34,7 @@ class EncoderLame : public EncoderBase
Q_OBJECT
public:
- EncoderLame(QObject *parent = NULL);
+ EncoderLame(QObject *parent = nullptr);
bool encode(QString input,QString output);
bool start();
bool stop() {return true;}
@@ -45,7 +45,7 @@ class EncoderLame : public EncoderBase
void saveSettings();
private:
- QLibrary *lib;
+ QLibrary lib;
const char*(*m_get_lame_short_version)(void);
int (*m_lame_set_out_samplerate)(lame_global_flags*, int);
int (*m_lame_set_in_samplerate)(lame_global_flags*, int);