Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
8bfe3497
Commit
8bfe3497
authored
Nov 01, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replay_gain: trigger OPTIONS idle event on mode change
parent
9bcfd3a4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
1 deletion
+26
-1
protocol.xml
doc/protocol.xml
+5
-1
replay_gain.c
src/replay_gain.c
+3
-0
read_tags.c
test/read_tags.c
+9
-0
run_decoder.c
test/run_decoder.c
+9
-0
No files found.
doc/protocol.xml
View file @
8bfe3497
...
...
@@ -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"
>
...
...
src/replay_gain.c
View file @
8bfe3497
...
...
@@ -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
;
}
...
...
test/read_tags.c
View file @
8bfe3497
...
...
@@ -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
,
...
...
test/run_decoder.c
View file @
8bfe3497
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment