aplay.c relies upon a GCC extension that has been removed.
Specifically the "cast as lvalue" extension. This patch removes
this dependency.
"-I, --separate-channels one file for each channel\n"
, command);
fprintf(stderr, "Recognized sample formats are:");
- for (k = 0; k < SND_PCM_FORMAT_LAST; ++(unsigned long) k) {
+ for (k = 0; k < SND_PCM_FORMAT_LAST; ++k) {
const char *s = snd_pcm_format_name(k);
if (s)
fprintf(stderr, " %s", s);
return result > 0 ? result : res;
count -= res;
result += res;
- (char *)buf += res;
+ buf = (char *)buf + res;
}
return result;
}