test/run_encoder, ...: convert to C++

This commit is contained in:
Max Kellermann
2013-01-30 21:27:37 +01:00
parent ac887d3afb
commit cfeeb7af2e
6 changed files with 25 additions and 8 deletions

View File

@@ -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

View File

@@ -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