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
9f4b906e
Commit
9f4b906e
authored
Jan 07, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
volume: convert to C++
parent
804900df
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
15 deletions
+13
-15
Makefile.am
Makefile.am
+1
-2
Main.cxx
src/Main.cxx
+1
-1
OtherCommands.cxx
src/OtherCommands.cxx
+1
-1
PlayerCommands.cxx
src/PlayerCommands.cxx
+1
-1
StateFile.cxx
src/StateFile.cxx
+1
-4
Volume.cxx
src/Volume.cxx
+5
-2
Volume.hxx
src/Volume.hxx
+3
-4
No files found.
Makefile.am
View file @
9f4b906e
...
@@ -152,7 +152,6 @@ mpd_headers = \
...
@@ -152,7 +152,6 @@ mpd_headers = \
src/uri.h
\
src/uri.h
\
src/utils.h
\
src/utils.h
\
src/string_util.h
\
src/string_util.h
\
src/volume.h
\
src/zeroconf.h src/zeroconf-internal.h
\
src/zeroconf.h src/zeroconf-internal.h
\
src/timer.h
\
src/timer.h
\
src/archive_api.h
\
src/archive_api.h
\
...
@@ -306,7 +305,7 @@ src_mpd_SOURCES = \
...
@@ -306,7 +305,7 @@ src_mpd_SOURCES = \
src/uri.c
\
src/uri.c
\
src/utils.c
\
src/utils.c
\
src/string_util.c
\
src/string_util.c
\
src/
volume.c
\
src/
Volume.cxx src/Volume.hxx
\
src/SongFilter.cxx src/SongFilter.hxx
\
src/SongFilter.cxx src/SongFilter.hxx
\
src/PlaylistFile.cxx src/PlaylistFile.hxx
\
src/PlaylistFile.cxx src/PlaylistFile.hxx
\
src/timer.c
src/timer.c
...
...
src/Main.cxx
View file @
9f4b906e
...
@@ -34,6 +34,7 @@
...
@@ -34,6 +34,7 @@
#include "Client.hxx"
#include "Client.hxx"
#include "AllCommands.hxx"
#include "AllCommands.hxx"
#include "Partition.hxx"
#include "Partition.hxx"
#include "Volume.hxx"
extern
"C"
{
extern
"C"
{
#include "daemon.h"
#include "daemon.h"
...
@@ -45,7 +46,6 @@ extern "C" {
...
@@ -45,7 +46,6 @@ extern "C" {
#include "sig_handlers.h"
#include "sig_handlers.h"
#include "audio_config.h"
#include "audio_config.h"
#include "output_all.h"
#include "output_all.h"
#include "volume.h"
#include "log.h"
#include "log.h"
#include "pcm_resample.h"
#include "pcm_resample.h"
#include "replay_gain_config.h"
#include "replay_gain_config.h"
...
...
src/OtherCommands.cxx
View file @
9f4b906e
...
@@ -32,10 +32,10 @@
...
@@ -32,10 +32,10 @@
#include "protocol/ArgParser.hxx"
#include "protocol/ArgParser.hxx"
#include "protocol/Result.hxx"
#include "protocol/Result.hxx"
#include "ls.hxx"
#include "ls.hxx"
#include "Volume.hxx"
extern
"C"
{
extern
"C"
{
#include "uri.h"
#include "uri.h"
#include "volume.h"
#include "stats.h"
#include "stats.h"
}
}
...
...
src/PlayerCommands.cxx
View file @
9f4b906e
...
@@ -24,12 +24,12 @@
...
@@ -24,12 +24,12 @@
#include "PlaylistPrint.hxx"
#include "PlaylistPrint.hxx"
#include "UpdateGlue.hxx"
#include "UpdateGlue.hxx"
#include "ClientInternal.hxx"
#include "ClientInternal.hxx"
#include "Volume.hxx"
#include "protocol/Result.hxx"
#include "protocol/Result.hxx"
#include "protocol/ArgParser.hxx"
#include "protocol/ArgParser.hxx"
extern
"C"
{
extern
"C"
{
#include "audio_format.h"
#include "audio_format.h"
#include "volume.h"
#include "replay_gain_config.h"
#include "replay_gain_config.h"
#include "output_all.h"
#include "output_all.h"
}
}
...
...
src/StateFile.cxx
View file @
9f4b906e
...
@@ -23,10 +23,7 @@
...
@@ -23,10 +23,7 @@
#include "PlaylistState.hxx"
#include "PlaylistState.hxx"
#include "TextFile.hxx"
#include "TextFile.hxx"
#include "Partition.hxx"
#include "Partition.hxx"
#include "Volume.hxx"
extern
"C"
{
#include "volume.h"
}
#include <glib.h>
#include <glib.h>
#include <assert.h>
#include <assert.h>
...
...
src/
volume.c
→
src/
Volume.cxx
View file @
9f4b906e
/*
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
* http://www.musicpd.org
*
*
* This program is free software; you can redistribute it and/or modify
* This program is free software; you can redistribute it and/or modify
...
@@ -18,10 +18,13 @@
...
@@ -18,10 +18,13 @@
*/
*/
#include "config.h"
#include "config.h"
#include "volume.h"
#include "Volume.hxx"
extern
"C"
{
#include "idle.h"
#include "idle.h"
#include "mixer_all.h"
#include "mixer_all.h"
#include "event_pipe.h"
#include "event_pipe.h"
}
#include <glib.h>
#include <glib.h>
...
...
src/
volume.h
→
src/
Volume.hxx
View file @
9f4b906e
/*
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
* http://www.musicpd.org
*
*
* This program is free software; you can redistribute it and/or modify
* This program is free software; you can redistribute it and/or modify
...
@@ -17,10 +17,9 @@
...
@@ -17,10 +17,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
*/
#ifndef MPD_VOLUME_H
#ifndef MPD_VOLUME_H
XX
#define MPD_VOLUME_H
#define MPD_VOLUME_H
XX
#include <stdbool.h>
#include <stdio.h>
#include <stdio.h>
void
volume_init
(
void
);
void
volume_init
(
void
);
...
...
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