aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-30 21:27:37 +0100
committerMax Kellermann <max@duempel.org>2013-01-30 21:39:43 +0100
commitcfeeb7af2e398b94db6db84c208976588d8cfcda (patch)
tree19635e8dc5fdcd54ff838def22e74de5ffffb13e /src
parentac887d3afb9aba509ddf2da034e089e86b761c3d (diff)
downloadmpd-cfeeb7af2e398b94db6db84c208976588d8cfcda.tar.gz
mpd-cfeeb7af2e398b94db6db84c208976588d8cfcda.tar.xz
mpd-cfeeb7af2e398b94db6db84c208976588d8cfcda.zip
test/run_encoder, ...: convert to C++
Diffstat (limited to 'src')
-rw-r--r--src/audio_parser.h8
-rw-r--r--src/pcm_volume.h8
2 files changed, 16 insertions, 0 deletions
diff --git a/src/audio_parser.h b/src/audio_parser.h
index 49926999e..bbe868f61 100644
--- a/src/audio_parser.h
+++ b/src/audio_parser.h
@@ -31,6 +31,10 @@
struct audio_format;
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* Parses a string in the form "SAMPLE_RATE:BITS:CHANNELS" into an
* #audio_format.
@@ -46,4 +50,8 @@ bool
audio_format_parse(struct audio_format *dest, const char *src,
bool mask, GError **error_r);
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff --git a/src/pcm_volume.h b/src/pcm_volume.h
index 4a4a4e45a..c161a72c7 100644
--- a/src/pcm_volume.h
+++ b/src/pcm_volume.h
@@ -65,6 +65,10 @@ pcm_volume_dither(void)
return (r & 511) - ((r >> 9) & 511);
}
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* Adjust the volume of the specified PCM buffer.
*
@@ -79,4 +83,8 @@ pcm_volume(void *buffer, size_t length,
enum sample_format format,
int volume);
+#ifdef __cplusplus
+}
+#endif
+
#endif