replay_gain: trigger OPTIONS idle event on mode change

This commit is contained in:
Max Kellermann 2009-11-01 15:44:56 +01:00
parent 9bcfd3a47d
commit 8bfe3497b0
4 changed files with 26 additions and 1 deletions

View File

@ -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">

View File

@ -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;
}

View File

@ -25,6 +25,7 @@
#include "tag_ape.h"
#include "tag_id3.h"
#include "config.h"
#include "idle.h"
#include <glib.h>
@ -35,6 +36,14 @@
#include <locale.h>
#endif
/**
* No-op dummy.
*/
void
idle_add(G_GNUC_UNUSED unsigned flags)
{
}
/**
* No-op dummy.
*/

View File

@ -22,12 +22,21 @@
#include "input_stream.h"
#include "audio_format.h"
#include "pcm_volume.h"
#include "idle.h"
#include <glib.h>
#include <assert.h>
#include <unistd.h>
/**
* No-op dummy.
*/
void
idle_add(G_GNUC_UNUSED unsigned flags)
{
}
/**
* No-op dummy.
*/