From: Vinod Koul Date: Mon, 16 Dec 2013 15:03:03 +0000 (+0530) Subject: tinycompress: cplay: use the numeric sample rate X-Git-Tag: v1.1.0~23 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=81cc16b702dedf1d94c3ba5525e80bd550f51a4e;p=tinycompress.git tinycompress: cplay: use the numeric sample rate Signed-off-by: Vinod Koul --- 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);