"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "axfer/xfer-options.c" between
alsa-utils-1.2.1.tar.bz2 and alsa-utils-1.2.2.tar.bz2

About: ALSA (Advanced Linux Sound Architecture) - Utilities.

xfer-options.c  (alsa-utils-1.2.1.tar.bz2):xfer-options.c  (alsa-utils-1.2.2.tar.bz2)
skipping to change at line 241 skipping to change at line 241
return err; return err;
} }
val = xfer->frames_per_second; val = xfer->frames_per_second;
if (xfer->frames_per_second == 0) if (xfer->frames_per_second == 0)
xfer->frames_per_second = 8000; xfer->frames_per_second = 8000;
if (xfer->frames_per_second < 1000) if (xfer->frames_per_second < 1000)
xfer->frames_per_second *= 1000; xfer->frames_per_second *= 1000;
if (xfer->frames_per_second < 2000 || if (xfer->frames_per_second < 2000 ||
xfer->frames_per_second > 192000) { xfer->frames_per_second > 192000) {
fprintf(stderr, "bad speed value '%i'\n", val); fprintf(stderr, "bad speed value '%u'\n", val);
return -EINVAL; return -EINVAL;
} }
if (xfer->samples_per_frame > 0) { if (xfer->samples_per_frame > 0) {
if (xfer->samples_per_frame < 1 || if (xfer->samples_per_frame < 1 ||
xfer->samples_per_frame > 256) { xfer->samples_per_frame > 256) {
fprintf(stderr, "invalid channels argument '%u'\n", fprintf(stderr, "invalid channels argument '%u'\n",
xfer->samples_per_frame); xfer->samples_per_frame);
return -EINVAL; return -EINVAL;
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)