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 @@ ...@@ -195,7 +195,7 @@
<para> <para>
<returnvalue>options</returnvalue>: options like <returnvalue>options</returnvalue>: options like
<option>repeat</option>, <option>random</option>, <option>repeat</option>, <option>random</option>,
<option>crossfade</option> <option>crossfade</option>, replay gain
</para> </para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
...@@ -520,6 +520,10 @@ ...@@ -520,6 +520,10 @@
seconds, because the new settings does not affect the seconds, because the new settings does not affect the
buffered data. buffered data.
</para> </para>
<para>
This command triggers the
<returnvalue>options</returnvalue> idle event.
</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry id="command_replay_gain_status"> <varlistentry id="command_replay_gain_status">
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include "conf.h" #include "conf.h"
#include "audio_format.h" #include "audio_format.h"
#include "pcm_volume.h" #include "pcm_volume.h"
#include "idle.h"
#include <glib.h> #include <glib.h>
...@@ -75,6 +76,8 @@ replay_gain_set_mode_string(const char *p) ...@@ -75,6 +76,8 @@ replay_gain_set_mode_string(const char *p)
else else
return false; return false;
idle_add(IDLE_OPTIONS);
return true; return true;
} }
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include "tag_ape.h" #include "tag_ape.h"
#include "tag_id3.h" #include "tag_id3.h"
#include "config.h" #include "config.h"
#include "idle.h"
#include <glib.h> #include <glib.h>
...@@ -38,6 +39,14 @@ ...@@ -38,6 +39,14 @@
/** /**
* No-op dummy. * No-op dummy.
*/ */
void
idle_add(G_GNUC_UNUSED unsigned flags)
{
}
/**
* No-op dummy.
*/
bool bool
pcm_volume(G_GNUC_UNUSED void *buffer, G_GNUC_UNUSED int length, pcm_volume(G_GNUC_UNUSED void *buffer, G_GNUC_UNUSED int length,
G_GNUC_UNUSED const struct audio_format *format, G_GNUC_UNUSED const struct audio_format *format,
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include "input_stream.h" #include "input_stream.h"
#include "audio_format.h" #include "audio_format.h"
#include "pcm_volume.h" #include "pcm_volume.h"
#include "idle.h"
#include <glib.h> #include <glib.h>
...@@ -31,6 +32,14 @@ ...@@ -31,6 +32,14 @@
/** /**
* No-op dummy. * No-op dummy.
*/ */
void
idle_add(G_GNUC_UNUSED unsigned flags)
{
}
/**
* No-op dummy.
*/
bool bool
pcm_volume(G_GNUC_UNUSED void *buffer, G_GNUC_UNUSED int length, pcm_volume(G_GNUC_UNUSED void *buffer, G_GNUC_UNUSED int length,
G_GNUC_UNUSED const struct audio_format *format, 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