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
22f0a154
Commit
22f0a154
authored
Jan 04, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
buffer, pipe: convert to C++
parent
de0ab43b
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
39 additions
and
51 deletions
+39
-51
Makefile.am
Makefile.am
+3
-6
DecoderAPI.cxx
src/DecoderAPI.cxx
+3
-3
DecoderControl.cxx
src/DecoderControl.cxx
+1
-4
DecoderInternal.cxx
src/DecoderInternal.cxx
+3
-6
Main.cxx
src/Main.cxx
+1
-1
MusicBuffer.cxx
src/MusicBuffer.cxx
+3
-3
MusicBuffer.hxx
src/MusicBuffer.hxx
+3
-3
MusicChunk.cxx
src/MusicChunk.cxx
+5
-2
MusicChunk.hxx
src/MusicChunk.hxx
+3
-4
MusicPipe.cxx
src/MusicPipe.cxx
+4
-4
MusicPipe.hxx
src/MusicPipe.hxx
+0
-2
OutputAll.cxx
src/OutputAll.cxx
+3
-7
OutputThread.cxx
src/OutputThread.cxx
+3
-2
PlayerThread.cxx
src/PlayerThread.cxx
+3
-3
crossfade.c
src/crossfade.c
+1
-1
No files found.
Makefile.am
View file @
22f0a154
...
...
@@ -110,9 +110,6 @@ mpd_headers = \
src/daemon.h
\
src/AudioCompress/config.h
\
src/AudioCompress/compress.h
\
src/buffer.h
\
src/pipe.h
\
src/chunk.h
\
src/path.h
\
src/open.h
\
src/output/httpd_client.h
\
...
...
@@ -260,9 +257,9 @@ src_mpd_SOURCES = \
src/event_pipe.c
\
src/daemon.c
\
src/AudioCompress/compress.c
\
src/
buffer.c
\
src/
pipe.c
\
src/
chunk.c
\
src/
MusicBuffer.cxx src/MusicBuffer.hxx
\
src/
MusicPipe.cxx src/MusicPipe.hxx
\
src/
MusicChunk.cxx src/MusicChunk.hxx
\
src/path.c
\
src/Mapper.cxx src/Mapper.hxx
\
src/page.c
\
...
...
src/DecoderAPI.cxx
View file @
22f0a154
...
...
@@ -22,12 +22,12 @@
extern
"C"
{
#include "decoder_api.h"
#include "audio_config.h"
#include "buffer.h"
#include "pipe.h"
#include "chunk.h"
#include "replay_gain_config.h"
}
#include "MusicChunk.hxx"
#include "MusicBuffer.hxx"
#include "MusicPipe.hxx"
#include "DecoderControl.hxx"
#include "DecoderInternal.hxx"
#include "song.h"
...
...
src/DecoderControl.cxx
View file @
22f0a154
...
...
@@ -19,12 +19,9 @@
#include "config.h"
#include "DecoderControl.hxx"
#include "MusicPipe.hxx"
#include "song.h"
extern
"C"
{
#include "pipe.h"
}
#include <assert.h>
#undef G_LOG_DOMAIN
...
...
src/DecoderInternal.cxx
View file @
22f0a154
...
...
@@ -20,14 +20,11 @@
#include "config.h"
#include "DecoderInternal.hxx"
#include "DecoderControl.hxx"
extern
"C"
{
#include "pipe.h"
#include "buffer.h"
}
#include "MusicPipe.hxx"
#include "MusicBuffer.hxx"
#include "MusicChunk.hxx"
#include "input_stream.h"
#include "chunk.h"
#include <assert.h>
...
...
src/Main.cxx
View file @
22f0a154
...
...
@@ -22,7 +22,7 @@
#include "CommandLine.hxx"
#include "PlaylistFile.hxx"
#include "UpdateGlue.hxx"
#include "
chunk.h
"
#include "
MusicChunk.hxx
"
#include "StateFile.hxx"
#include "PlayerThread.hxx"
#include "Mapper.hxx"
...
...
src/
buffer.c
→
src/
MusicBuffer.cxx
View file @
22f0a154
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -18,8 +18,8 @@
*/
#include "config.h"
#include "
buffer.h
"
#include "
chunk.h
"
#include "
MusicBuffer.hxx
"
#include "
MusicChunk.hxx
"
#include "poison.h"
#include <glib.h>
...
...
src/
buffer.h
→
src/
MusicBuffer.hxx
View file @
22f0a154
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -17,8 +17,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MPD_MUSIC_BUFFER_H
#define MPD_MUSIC_BUFFER_H
#ifndef MPD_MUSIC_BUFFER_H
XX
#define MPD_MUSIC_BUFFER_H
XX
/**
* An allocator for #music_chunk objects.
...
...
src/
chunk.c
→
src/
MusicChunk.cxx
View file @
22f0a154
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -18,9 +18,12 @@
*/
#include "config.h"
#include "
chunk.h
"
#include "
MusicChunk.hxx
"
#include "audio_format.h"
extern
"C"
{
#include "tag.h"
}
#include <assert.h>
...
...
src/
chunk.h
→
src/
MusicChunk.hxx
View file @
22f0a154
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -17,8 +17,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MPD_
CHUNK_H
#define MPD_
CHUNK_H
#ifndef MPD_
MUSIC_CHUNK_HXX
#define MPD_
MUSIC_CHUNK_HXX
#include "replay_gain_info.h"
...
...
@@ -26,7 +26,6 @@
#include "audio_format.h"
#endif
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
...
...
src/
pipe.c
→
src/
MusicPipe.cxx
View file @
22f0a154
...
...
@@ -18,9 +18,9 @@
*/
#include "config.h"
#include "
pipe.h
"
#include "
buffer.h
"
#include "
chunk.h
"
#include "
MusicPipe.hxx
"
#include "
MusicBuffer.hxx
"
#include "
MusicChunk.hxx
"
#include <glib.h>
...
...
@@ -137,7 +137,7 @@ music_pipe_shift(struct music_pipe *mp)
#ifndef NDEBUG
/* poison the "next" reference */
chunk
->
next
=
(
void
*
)
0x01010101
;
chunk
->
next
=
(
struct
music_chunk
*
)(
void
*
)
0x01010101
;
if
(
mp
->
size
==
0
)
audio_format_clear
(
&
mp
->
audio_format
);
...
...
src/
pipe.h
→
src/
MusicPipe.hxx
View file @
22f0a154
...
...
@@ -22,8 +22,6 @@
#include "gcc.h"
#include <stdbool.h>
#ifndef NDEBUG
struct
audio_format
;
#endif
...
...
src/OutputAll.cxx
View file @
22f0a154
...
...
@@ -26,21 +26,17 @@ extern "C" {
#include "OutputControl.hxx"
#include "OutputError.hxx"
#include "MusicBuffer.hxx"
#include "MusicPipe.hxx"
#include "MusicChunk.hxx"
#include "mpd_error.h"
extern
"C"
{
#include "player_control.h"
#include "conf.h"
#include "chunk.h"
#include "pipe.h"
#include "buffer.h"
#include "notify.h"
}
#ifndef NDEBUG
#include "chunk.h"
#endif
#include <assert.h>
#include <string.h>
...
...
src/OutputThread.cxx
View file @
22f0a154
...
...
@@ -23,8 +23,6 @@
extern
"C"
{
#include "output_api.h"
#include "output_internal.h"
#include "chunk.h"
#include "pipe.h"
#include "player_control.h"
#include "pcm_mix.h"
#include "filter_plugin.h"
...
...
@@ -33,6 +31,9 @@ extern "C" {
#include "notify.h"
}
#include "MusicPipe.hxx"
#include "MusicChunk.hxx"
#include "mpd_error.h"
#include "gcc.h"
...
...
src/PlayerThread.cxx
View file @
22f0a154
...
...
@@ -21,6 +21,9 @@
#include "PlayerThread.hxx"
#include "DecoderThread.hxx"
#include "DecoderControl.hxx"
#include "MusicPipe.hxx"
#include "MusicBuffer.hxx"
#include "MusicChunk.hxx"
#include "song.h"
#include "Main.hxx"
#include "mpd_error.h"
...
...
@@ -31,10 +34,7 @@ extern "C" {
#include "event_pipe.h"
#include "crossfade.h"
#include "tag.h"
#include "pipe.h"
#include "chunk.h"
#include "idle.h"
#include "buffer.h"
}
#include <glib.h>
...
...
src/crossfade.c
View file @
22f0a154
...
...
@@ -19,7 +19,7 @@
#include "config.h"
#include "crossfade.h"
#include "
chunk.h
"
#include "
MusicChunk.hxx
"
#include "audio_format.h"
#include "tag.h"
...
...
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