replay_gain: reimplement as a filter plugin
Apply the replay gain in the output thread. This means a new setting will be active instantly, without going through the whole music pipe. And we might have different replay gain settings for each audio output device.
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include "audio_format.h"
|
||||
#include "filter_plugin.h"
|
||||
#include "pcm_volume.h"
|
||||
#include "idle.h"
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
@@ -31,6 +32,11 @@
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
|
||||
void
|
||||
idle_add(G_GNUC_UNUSED unsigned flags)
|
||||
{
|
||||
}
|
||||
|
||||
static void
|
||||
my_log_func(const gchar *log_domain, G_GNUC_UNUSED GLogLevelFlags log_level,
|
||||
const gchar *message, G_GNUC_UNUSED gpointer user_data)
|
||||
|
@@ -26,6 +26,7 @@
|
||||
#include "filter_registry.h"
|
||||
#include "pcm_convert.h"
|
||||
#include "event_pipe.h"
|
||||
#include "idle.h"
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
@@ -33,6 +34,11 @@
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
void
|
||||
idle_add(G_GNUC_UNUSED unsigned flags)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
event_pipe_emit(G_GNUC_UNUSED enum pipe_event event)
|
||||
{
|
||||
|
Reference in New Issue
Block a user