diff options
author | Max Kellermann <max@duempel.org> | 2013-01-31 20:45:19 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-31 21:11:06 +0100 |
commit | 0307801d5164b3119a0da6eec83e9616665e6511 (patch) | |
tree | 544b1955a4a57a7188fd2a90ed87b3175b4d61ed /test/test_pcm_channels.c | |
parent | 72cf8dd8a0451a4d9dae14a68483dc31adc61b09 (diff) | |
download | mpd-0307801d5164b3119a0da6eec83e9616665e6511.tar.gz mpd-0307801d5164b3119a0da6eec83e9616665e6511.tar.xz mpd-0307801d5164b3119a0da6eec83e9616665e6511.zip |
test/test_pcm: convert to C++
Diffstat (limited to '')
-rw-r--r-- | test/test_pcm_channels.cxx (renamed from test/test_pcm_channels.c) | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/test_pcm_channels.c b/test/test_pcm_channels.cxx index fb3ec5c3e..66f4bc63c 100644 --- a/test/test_pcm_channels.c +++ b/test/test_pcm_channels.cxx @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003-2011 The Music Player Daemon Project + * Copyright (C) 2003-2013 The Music Player Daemon Project * http://www.musicpd.org * * This program is free software; you can redistribute it and/or modify @@ -18,14 +18,16 @@ */ #include "config.h" -#include "test_pcm_all.h" +#include "test_pcm_all.hxx" +extern "C" { #include "pcm_channels.h" +} #include "pcm_buffer.h" #include <glib.h> void -test_pcm_channels_16(void) +test_pcm_channels_16() { enum { N = 256 }; int16_t src[N * 2]; @@ -63,7 +65,7 @@ test_pcm_channels_16(void) } void -test_pcm_channels_32(void) +test_pcm_channels_32() { enum { N = 256 }; int32_t src[N * 2]; |