diff options
-rw-r--r-- | aplay/aplay.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/aplay/aplay.c b/aplay/aplay.c index e58e1bc..370531e 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -1681,9 +1681,9 @@ static void compute_max_peak(u_char *data, size_t count) c = 0; while (count-- > 0) { if (format_little_endian) - sval = le16toh(*valp); + sval = letoh16(*valp); else - sval = be16toh(*valp); + sval = betoh16(*valp); sval = abs(sval) ^ mask; if (max_peak[c] < sval) max_peak[c] = sval; @@ -1726,9 +1726,9 @@ static void compute_max_peak(u_char *data, size_t count) c = 0; while (count-- > 0) { if (format_little_endian) - val = le32toh(*valp); + val = letoh32(*valp); else - val = be32toh(*valp); + val = betoh32(*valp); val = abs(val) ^ mask; if (max_peak[c] < val) max_peak[c] = val; |