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
43166130
Commit
43166130
authored
Jul 29, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audio_check: convert to C++
parent
14f21378
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
34 additions
and
61 deletions
+34
-61
Makefile.am
Makefile.am
+11
-12
AudioParser.cxx
src/AudioParser.cxx
+1
-1
CheckAudioFormat.cxx
src/CheckAudioFormat.cxx
+2
-2
CheckAudioFormat.hxx
src/CheckAudioFormat.hxx
+3
-12
AdPlugDecoderPlugin.cxx
src/decoder/AdPlugDecoderPlugin.cxx
+1
-4
AudiofileDecoderPlugin.cxx
src/decoder/AudiofileDecoderPlugin.cxx
+1
-1
DsdiffDecoderPlugin.cxx
src/decoder/DsdiffDecoderPlugin.cxx
+1
-1
DsfDecoderPlugin.cxx
src/decoder/DsfDecoderPlugin.cxx
+1
-1
FaadDecoderPlugin.cxx
src/decoder/FaadDecoderPlugin.cxx
+1
-1
FfmpegDecoderPlugin.cxx
src/decoder/FfmpegDecoderPlugin.cxx
+1
-4
FlacCommon.cxx
src/decoder/FlacCommon.cxx
+1
-4
FluidsynthDecoderPlugin.cxx
src/decoder/FluidsynthDecoderPlugin.cxx
+1
-1
GmeDecoderPlugin.cxx
src/decoder/GmeDecoderPlugin.cxx
+1
-1
MadDecoderPlugin.cxx
src/decoder/MadDecoderPlugin.cxx
+1
-1
MpcdecDecoderPlugin.cxx
src/decoder/MpcdecDecoderPlugin.cxx
+1
-1
Mpg123DecoderPlugin.cxx
src/decoder/Mpg123DecoderPlugin.cxx
+1
-1
OpusDecoderPlugin.cxx
src/decoder/OpusDecoderPlugin.cxx
+1
-1
SndfileDecoderPlugin.cxx
src/decoder/SndfileDecoderPlugin.cxx
+1
-1
VorbisDecoderPlugin.cxx
src/decoder/VorbisDecoderPlugin.cxx
+1
-5
WavpackDecoderPlugin.cxx
src/decoder/WavpackDecoderPlugin.cxx
+1
-5
RouteFilterPlugin.cxx
src/filter/RouteFilterPlugin.cxx
+1
-1
No files found.
Makefile.am
View file @
43166130
...
...
@@ -52,7 +52,6 @@ mpd_headers = \
src/check.h
\
src/ack.h
\
src/audio_format.h
\
src/audio_check.h
\
src/output_api.h
\
src/filter_internal.h
\
src/command.h
\
...
...
@@ -101,7 +100,7 @@ src_mpd_SOURCES = \
src/clock.c src/clock.h
\
src/notify.cxx src/notify.hxx
\
src/AudioConfig.cxx src/AudioConfig.hxx
\
src/
audio_check.c
\
src/
CheckAudioFormat.cxx src/CheckAudioFormat.hxx
\
src/audio_format.c
\
src/AudioParser.cxx src/AudioParser.hxx
\
src/protocol/ArgParser.cxx src/protocol/ArgParser.hxx
\
...
...
@@ -1139,7 +1138,7 @@ test_dump_playlist_SOURCES = test/dump_playlist.cxx \
src/IOThread.cxx
\
src/Song.cxx src/Tag.cxx src/TagNames.c src/TagPool.cxx src/TagSave.cxx
\
src/TagHandler.cxx src/TagFile.cxx
\
src/
audio_check.c
\
src/
CheckAudioFormat.cxx
\
src/TextInputStream.cxx
\
src/cue/CueParser.cxx src/cue/CueParser.hxx
\
src/fd_util.c
...
...
@@ -1167,7 +1166,7 @@ test_run_decoder_SOURCES = test/run_decoder.cxx \
src/Tag.cxx src/TagNames.c src/TagPool.cxx src/TagHandler.cxx
\
src/ReplayGainInfo.cxx
\
src/fd_util.c
\
src/
audio_check.c
\
src/
CheckAudioFormat.cxx
\
src/audio_format.c
\
$(ARCHIVE_SRC)
\
$(INPUT_SRC)
\
...
...
@@ -1190,7 +1189,7 @@ test_read_tags_SOURCES = test/read_tags.cxx \
src/Tag.cxx src/TagNames.c src/TagPool.cxx src/TagHandler.cxx
\
src/ReplayGainInfo.cxx
\
src/fd_util.c
\
src/
audio_check.c
\
src/
CheckAudioFormat.cxx
\
$(DECODER_SRC)
if
HAVE_ID3TAG
...
...
@@ -1214,7 +1213,7 @@ test_run_filter_SOURCES = test/run_filter.cxx \
test
/FakeReplayGainConfig.cxx
\
test
/stdbin.h
\
src/FilterPlugin.cxx src/FilterRegistry.cxx
\
src/
audio_check.c
\
src/
CheckAudioFormat.cxx
\
src/audio_format.c
\
src/AudioParser.cxx
\
src/ReplayGainInfo.cxx
\
...
...
@@ -1233,7 +1232,7 @@ noinst_PROGRAMS += test/run_encoder
test_run_encoder_SOURCES
=
test
/run_encoder.cxx
\
test
/stdbin.h
\
src/Tag.cxx src/TagNames.c src/TagPool.cxx
\
src/
audio_check.c
\
src/
CheckAudioFormat.cxx
\
src/audio_format.c
\
src/AudioParser.cxx
test_run_encoder_LDADD
=
\
...
...
@@ -1251,7 +1250,7 @@ noinst_PROGRAMS += test/test_vorbis_encoder
test_test_vorbis_encoder_SOURCES
=
test
/test_vorbis_encoder.cxx
\
test
/stdbin.h
\
src/Tag.cxx src/TagNames.c src/TagPool.cxx
\
src/
audio_check.c
\
src/
CheckAudioFormat.cxx
\
src/audio_format.c
\
src/AudioParser.cxx
\
$(ENCODER_SRC)
...
...
@@ -1268,7 +1267,7 @@ endif
test_software_volume_SOURCES
=
test
/software_volume.cxx
\
test
/stdbin.h
\
src/
audio_check.c
\
src/
CheckAudioFormat.cxx
\
src/AudioParser.cxx
test_software_volume_LDADD
=
\
$(PCM_LIBS)
\
...
...
@@ -1276,7 +1275,7 @@ test_software_volume_LDADD = \
test_run_normalize_SOURCES
=
test
/run_normalize.cxx
\
test
/stdbin.h
\
src/
audio_check.c
\
src/
CheckAudioFormat.cxx
\
src/AudioParser.cxx
\
src/AudioCompress/compress.c
test_run_normalize_LDADD
=
\
...
...
@@ -1284,7 +1283,7 @@ test_run_normalize_LDADD = \
test_run_convert_SOURCES
=
test
/run_convert.cxx
\
src/audio_format.c
\
src/
audio_check.c
\
src/
CheckAudioFormat.cxx
\
src/AudioParser.cxx
test_run_convert_LDADD
=
\
$(PCM_LIBS)
\
...
...
@@ -1306,7 +1305,7 @@ test_run_output_SOURCES = test/run_output.cxx \
test
/FakeReplayGainConfig.cxx
\
test
/stdbin.h
\
src/IOThread.cxx
\
src/
audio_check.c
\
src/
CheckAudioFormat.cxx
\
src/audio_format.c
\
src/AudioParser.cxx
\
src/Timer.cxx src/clock.c
\
...
...
src/AudioParser.cxx
View file @
43166130
...
...
@@ -25,7 +25,7 @@
#include "config.h"
#include "AudioParser.hxx"
#include "audio_format.h"
#include "
audio_check.h
"
#include "
CheckAudioFormat.hxx
"
#include "gcc.h"
#include <assert.h>
...
...
src/
audio_check.c
→
src/
CheckAudioFormat.cxx
View file @
43166130
/*
* 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,7 +17,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "
audio_check.h
"
#include "
CheckAudioFormat.hxx
"
#include "audio_format.h"
#include <assert.h>
...
...
src/
audio_check.h
→
src/
CheckAudioFormat.hxx
View file @
43166130
/*
* 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,13 +17,12 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MPD_
AUDIO_CHECK_H
#define MPD_
AUDIO_CHECK_H
#ifndef MPD_
CHECK_AUDIO_FORMAT_HXX
#define MPD_
CHECK_AUDIO_FORMAT_HXX
#include "audio_format.h"
#include <glib.h>
#include <stdbool.h>
/**
* The GLib quark used for errors reported by this library.
...
...
@@ -35,10 +34,6 @@ audio_format_quark(void)
return
g_quark_from_static_string
(
"audio_format"
);
}
#ifdef __cplusplus
extern
"C"
{
#endif
bool
audio_check_sample_rate
(
unsigned
long
sample_rate
,
GError
**
error_r
);
...
...
@@ -56,8 +51,4 @@ audio_format_init_checked(struct audio_format *af, unsigned long sample_rate,
enum
sample_format
sample_format
,
unsigned
channels
,
GError
**
error_r
);
#ifdef __cplusplus
}
#endif
#endif
src/decoder/AdPlugDecoderPlugin.cxx
View file @
43166130
...
...
@@ -21,10 +21,7 @@
#include "AdPlugDecoderPlugin.h"
#include "TagHandler.hxx"
#include "DecoderAPI.hxx"
extern
"C"
{
#include "audio_check.h"
}
#include "CheckAudioFormat.hxx"
#include <adplug/adplug.h>
#include <adplug/emuopl.h>
...
...
src/decoder/AudiofileDecoderPlugin.cxx
View file @
43166130
...
...
@@ -20,7 +20,7 @@
#include "config.h"
#include "AudiofileDecoderPlugin.hxx"
#include "DecoderAPI.hxx"
#include "
audio_check.h
"
#include "
CheckAudioFormat.hxx
"
#include "TagHandler.hxx"
#include <audiofile.h>
...
...
src/decoder/DsdiffDecoderPlugin.cxx
View file @
43166130
...
...
@@ -29,7 +29,7 @@
#include "config.h"
#include "DsdiffDecoderPlugin.hxx"
#include "DecoderAPI.hxx"
#include "
audio_check.h
"
#include "
CheckAudioFormat.hxx
"
#include "util/bit_reverse.h"
#include "TagHandler.hxx"
#include "DsdLib.hxx"
...
...
src/decoder/DsfDecoderPlugin.cxx
View file @
43166130
...
...
@@ -30,7 +30,7 @@
#include "config.h"
#include "DsfDecoderPlugin.hxx"
#include "DecoderAPI.hxx"
#include "
audio_check.h
"
#include "
CheckAudioFormat.hxx
"
#include "util/bit_reverse.h"
#include "DsdLib.hxx"
#include "TagHandler.hxx"
...
...
src/decoder/FaadDecoderPlugin.cxx
View file @
43166130
...
...
@@ -21,7 +21,7 @@
#include "FaadDecoderPlugin.hxx"
#include "DecoderAPI.hxx"
#include "DecoderBuffer.hxx"
#include "
audio_check.h
"
#include "
CheckAudioFormat.hxx
"
#include "TagHandler.hxx"
#include <neaacdec.h>
...
...
src/decoder/FfmpegDecoderPlugin.cxx
View file @
43166130
...
...
@@ -26,10 +26,7 @@
#include "FfmpegMetaData.hxx"
#include "TagHandler.hxx"
#include "InputStream.hxx"
extern
"C"
{
#include "audio_check.h"
}
#include "CheckAudioFormat.hxx"
#include <glib.h>
...
...
src/decoder/FlacCommon.cxx
View file @
43166130
...
...
@@ -25,10 +25,7 @@
#include "FlacCommon.hxx"
#include "FlacMetadata.hxx"
#include "FlacPcm.hxx"
extern
"C"
{
#include "audio_check.h"
}
#include "CheckAudioFormat.hxx"
#include <glib.h>
...
...
src/decoder/FluidsynthDecoderPlugin.cxx
View file @
43166130
...
...
@@ -20,7 +20,7 @@
#include "config.h"
#include "FluidsynthDecoderPlugin.hxx"
#include "DecoderAPI.hxx"
#include "
audio_check.h
"
#include "
CheckAudioFormat.hxx
"
#include "conf.h"
#include <glib.h>
...
...
src/decoder/GmeDecoderPlugin.cxx
View file @
43166130
...
...
@@ -20,7 +20,7 @@
#include "config.h"
#include "GmeDecoderPlugin.hxx"
#include "DecoderAPI.hxx"
#include "
audio_check.h
"
#include "
CheckAudioFormat.hxx
"
#include "TagHandler.hxx"
#include "util/UriUtil.hxx"
...
...
src/decoder/MadDecoderPlugin.cxx
View file @
43166130
...
...
@@ -24,7 +24,7 @@
#include "TagId3.hxx"
#include "TagRva2.hxx"
#include "TagHandler.hxx"
#include "
audio_check.h
"
#include "
CheckAudioFormat.hxx
"
#include <assert.h>
#include <unistd.h>
...
...
src/decoder/MpcdecDecoderPlugin.cxx
View file @
43166130
...
...
@@ -20,7 +20,7 @@
#include "config.h"
#include "MpcdecDecoderPlugin.hxx"
#include "DecoderAPI.hxx"
#include "
audio_check.h
"
#include "
CheckAudioFormat.hxx
"
#include "TagHandler.hxx"
#ifdef MPC_IS_OLD_API
...
...
src/decoder/Mpg123DecoderPlugin.cxx
View file @
43166130
...
...
@@ -20,7 +20,7 @@
#include "config.h"
/* must be first for large file support */
#include "Mpg123DecoderPlugin.hxx"
#include "DecoderAPI.hxx"
#include "
audio_check.h
"
#include "
CheckAudioFormat.hxx
"
#include "TagHandler.hxx"
#include <glib.h>
...
...
src/decoder/OpusDecoderPlugin.cxx
View file @
43166130
...
...
@@ -26,7 +26,7 @@
#include "OggSyncState.hxx"
#include "DecoderAPI.hxx"
#include "OggCodec.hxx"
#include "
audio_check.h
"
#include "
CheckAudioFormat.hxx
"
#include "TagHandler.hxx"
#include "InputStream.hxx"
...
...
src/decoder/SndfileDecoderPlugin.cxx
View file @
43166130
...
...
@@ -20,7 +20,7 @@
#include "config.h"
#include "SndfileDecoderPlugin.hxx"
#include "DecoderAPI.hxx"
#include "
audio_check.h
"
#include "
CheckAudioFormat.hxx
"
#include "TagHandler.hxx"
#include <sndfile.h>
...
...
src/decoder/VorbisDecoderPlugin.cxx
View file @
43166130
...
...
@@ -24,11 +24,7 @@
#include "InputStream.hxx"
#include "OggCodec.hxx"
#include "util/UriUtil.hxx"
extern
"C"
{
#include "audio_check.h"
}
#include "CheckAudioFormat.hxx"
#include "TagHandler.hxx"
#ifndef HAVE_TREMOR
...
...
src/decoder/WavpackDecoderPlugin.cxx
View file @
43166130
...
...
@@ -21,11 +21,7 @@
#include "WavpackDecoderPlugin.hxx"
#include "DecoderAPI.hxx"
#include "InputStream.hxx"
extern
"C"
{
#include "audio_check.h"
}
#include "CheckAudioFormat.hxx"
#include "TagHandler.hxx"
#include "ApeTag.hxx"
...
...
src/filter/RouteFilterPlugin.cxx
View file @
43166130
...
...
@@ -43,7 +43,7 @@
#include "conf.h"
#include "ConfigQuark.hxx"
#include "audio_format.h"
#include "
audio_check.h
"
#include "
CheckAudioFormat.hxx
"
#include "FilterPlugin.hxx"
#include "FilterInternal.hxx"
#include "FilterRegistry.hxx"
...
...
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