mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 00:45:41 +01:00
6372f4acc2
speaker-test doesn't work well when you choose a little-endian format on a big-endian processor, or the opposite. Yes, I know about plughw:, but for debugging purposes it may not be an option. The following patch add proper support for S32 and S16 support for but LE and BE processors: - The "if (bits-per-sample)" construct was replaced by case (format). - Support for S16_BE, S32_BE formats was added. - S16_LE and S32_LE were made compatible with big-endian processors. - NB: The pink noise generator wasn't changed (I'll do if this patch is OK). From: Giuliano Pochini <pochini@shiny.it> |
||
---|---|---|
.. | ||
samples | ||
Makefile.am | ||
pink.c | ||
pink.h | ||
readme.txt | ||
speaker-test.1 | ||
speaker-test.c |
To make or build just type make To test: - 1) Just stereo sound from one stereo jack: - ./speaker-test -Dplug:front -c2 2) A 4 speaker setup from two stereo jacks: - ./speaker-test -Dplug:surround40 -c4 3) A 5.1 speaker setup from three stereo jacks: - ./speaker-test -Dplug:surround51 -c6