From 81cc16b702dedf1d94c3ba5525e80bd550f51a4e Mon Sep 17 00:00:00 2001 From: Vinod Koul Date: Mon, 16 Dec 2013 20:33:03 +0530 Subject: [PATCH] tinycompress: cplay: use the numeric sample rate Signed-off-by: Vinod Koul --- cplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cplay.c b/cplay.c index 10c5424..c46577a 100644 --- a/cplay.c +++ b/cplay.c @@ -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); -- 2.47.3