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
823c618d
Commit
823c618d
authored
Jan 30, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
{encoder,output}_api.h: allow compiling as C++
parent
51cb6a0a
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
11 deletions
+19
-11
OutputControl.cxx
src/OutputControl.cxx
+1
-1
OutputInit.cxx
src/OutputInit.cxx
+1
-1
OutputThread.cxx
src/OutputThread.cxx
+1
-1
OpusEncoderPlugin.cxx
src/encoder/OpusEncoderPlugin.cxx
+0
-4
VorbisEncoderPlugin.cxx
src/encoder/VorbisEncoderPlugin.cxx
+0
-4
output_plugin.h
src/output_plugin.h
+8
-0
pcm_buffer.h
src/pcm_buffer.h
+8
-0
No files found.
src/OutputControl.cxx
View file @
823c618d
...
...
@@ -20,9 +20,9 @@
#include "config.h"
#include "OutputControl.hxx"
#include "OutputThread.hxx"
#include "output_api.h"
extern
"C"
{
#include "output_api.h"
#include "output_internal.h"
#include "mixer_control.h"
#include "mixer_plugin.h"
...
...
src/OutputInit.cxx
View file @
823c618d
...
...
@@ -21,9 +21,9 @@
#include "OutputControl.hxx"
#include "OutputList.hxx"
#include "FilterConfig.hxx"
#include "output_api.h"
extern
"C"
{
#include "output_api.h"
#include "output_internal.h"
#include "audio_parser.h"
#include "mixer_control.h"
...
...
src/OutputThread.cxx
View file @
823c618d
...
...
@@ -19,9 +19,9 @@
#include "config.h"
#include "OutputThread.hxx"
#include "output_api.h"
extern
"C"
{
#include "output_api.h"
#include "output_internal.h"
#include "pcm_mix.h"
#include "filter_plugin.h"
...
...
src/encoder/OpusEncoderPlugin.cxx
View file @
823c618d
...
...
@@ -20,11 +20,7 @@
#include "config.h"
#include "OpusEncoderPlugin.hxx"
#include "OggStream.hxx"
extern
"C"
{
#include "encoder_api.h"
}
#include "encoder_plugin.h"
#include "audio_format.h"
#include "mpd_error.h"
...
...
src/encoder/VorbisEncoderPlugin.cxx
View file @
823c618d
...
...
@@ -20,11 +20,7 @@
#include "config.h"
#include "VorbisEncoderPlugin.hxx"
#include "OggStream.hxx"
extern
"C"
{
#include "encoder_api.h"
}
#include "encoder_plugin.h"
#include "tag.h"
#include "audio_format.h"
...
...
src/output_plugin.h
View file @
823c618d
...
...
@@ -166,6 +166,10 @@ ao_plugin_test_default_device(const struct audio_output_plugin *plugin)
:
false
;
}
#ifdef __cplusplus
extern
"C"
{
#endif
gcc_malloc
struct
audio_output
*
ao_plugin_init
(
const
struct
audio_output_plugin
*
plugin
,
...
...
@@ -208,4 +212,8 @@ ao_plugin_cancel(struct audio_output *ao);
bool
ao_plugin_pause
(
struct
audio_output
*
ao
);
#ifdef __cplusplus
}
#endif
#endif
src/pcm_buffer.h
View file @
823c618d
...
...
@@ -62,6 +62,10 @@ pcm_buffer_deinit(struct pcm_buffer *buffer)
buffer
->
buffer
=
NULL
;
}
#ifdef __cplusplus
extern
"C"
{
#endif
/**
* Get the buffer, and guarantee a minimum size. This buffer becomes
* invalid with the next pcm_buffer_get() call.
...
...
@@ -74,4 +78,8 @@ G_GNUC_MALLOC
void
*
pcm_buffer_get
(
struct
pcm_buffer
*
buffer
,
size_t
size
);
#ifdef __cplusplus
}
#endif
#endif
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