diff options
-rw-r--r-- | cplay.c | 2 | ||||
-rw-r--r-- | include/tinycompress/tinymp3.h | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -226,7 +226,7 @@ void play_samples(char *name, unsigned int card, unsigned int device, 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 @@ enum mp3_stereo_mode { MONO = 0x03 }; +#if defined(__cplusplus) +} +#endif + #endif |