Add support for bs2b

Improve headphone listening of stereo audio records
This commit is contained in:
Jonas Kvinge
2022-03-05 01:30:49 +01:00
parent 4cd0128919
commit 5a35099043
7 changed files with 71 additions and 14 deletions

View File

@@ -73,6 +73,7 @@ class GstEnginePipeline : public QObject {
void set_buffer_high_watermark(const double value);
void set_proxy_settings(const QString &address, const bool authentication, const QString &user, const QString &pass);
void set_channels(const bool enabled, const int channels);
void set_bs2b_enabled(const bool enabled);
// Creates the pipeline, returns false on error
bool InitFromUrl(const QByteArray &stream_url, const QUrl &original_url, const qint64 end_nanosec, QString &error);
@@ -221,6 +222,9 @@ class GstEnginePipeline : public QObject {
bool channels_enabled_;
int channels_;
// Options
bool bs2b_enabled_;
// These get called when there is a new audio buffer available
QList<GstBufferConsumer*> buffer_consumers_;
QMutex buffer_consumers_mutex_;