am b8f9b742: Merge "Cleanup Obsolete LOCAL_PRELINK_MODULE."
* commit 'b8f9b7428a741c3b1fc1667a4fa80931bcfe224b':
Cleanup Obsolete LOCAL_PRELINK_MODULE.
diff --git a/cplay.c b/cplay.c
index 10c5424..c46577a 100644
--- a/cplay.c
+++ b/cplay.c
@@ -226,7 +226,7 @@
codec.id = SND_AUDIOCODEC_MP3;
codec.ch_in = channels;
codec.ch_out = channels;
- codec.sample_rate = compress_get_alsa_rate(rate);
+ codec.sample_rate = rate;
if (!codec.sample_rate) {
fprintf(stderr, "invalid sample rate %d\n", rate);
fclose(file);
diff --git a/include/tinycompress/tinymp3.h b/include/tinycompress/tinymp3.h
index b7b45e3..aa5aca3 100644
--- a/include/tinycompress/tinymp3.h
+++ b/include/tinycompress/tinymp3.h
@@ -103,4 +103,8 @@
MONO = 0x03
};
+#if defined(__cplusplus)
+}
+#endif
+
#endif