Commit 8bfe3497 authored by Max Kellermann's avatar Max Kellermann

replay_gain: trigger OPTIONS idle event on mode change

parent 9bcfd3a4
......@@ -195,7 +195,7 @@
<para>
<returnvalue>options</returnvalue>: options like
<option>repeat</option>, <option>random</option>,
<option>crossfade</option>
<option>crossfade</option>, replay gain
</para>
</listitem>
</itemizedlist>
......@@ -520,6 +520,10 @@
seconds, because the new settings does not affect the
buffered data.
</para>
<para>
This command triggers the
<returnvalue>options</returnvalue> idle event.
</para>
</listitem>
</varlistentry>
<varlistentry id="command_replay_gain_status">
......
......@@ -24,6 +24,7 @@
#include "conf.h"
#include "audio_format.h"
#include "pcm_volume.h"
#include "idle.h"
#include <glib.h>
......@@ -75,6 +76,8 @@ replay_gain_set_mode_string(const char *p)
else
return false;
idle_add(IDLE_OPTIONS);
return true;
}
......
......@@ -25,6 +25,7 @@
#include "tag_ape.h"
#include "tag_id3.h"
#include "config.h"
#include "idle.h"
#include <glib.h>
......@@ -38,6 +39,14 @@
/**
* No-op dummy.
*/
void
idle_add(G_GNUC_UNUSED unsigned flags)
{
}
/**
* No-op dummy.
*/
bool
pcm_volume(G_GNUC_UNUSED void *buffer, G_GNUC_UNUSED int length,
G_GNUC_UNUSED const struct audio_format *format,
......
......@@ -22,6 +22,7 @@
#include "input_stream.h"
#include "audio_format.h"
#include "pcm_volume.h"
#include "idle.h"
#include <glib.h>
......@@ -31,6 +32,14 @@
/**
* No-op dummy.
*/
void
idle_add(G_GNUC_UNUSED unsigned flags)
{
}
/**
* No-op dummy.
*/
bool
pcm_volume(G_GNUC_UNUSED void *buffer, G_GNUC_UNUSED int length,
G_GNUC_UNUSED const struct audio_format *format,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment