alsa-utils/speaker-test
Takashi Iwai 6372f4acc2 speaker-test.c - fix sine generator on big-endian archs
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>
2008-04-21 15:19:27 +02:00
..
samples Install sound samples to correct places. 2005-04-16 11:09:26 +00:00
Makefile.am Add missing library dependency 2007-06-04 15:14:47 +02:00
pink.c Implement Pink noise output. 2005-04-14 15:53:53 +00:00
pink.h Implement Pink noise output. 2005-04-14 15:53:53 +00:00
readme.txt Update to speaker-tools 0.0.7 2005-02-18 10:18:53 +00:00
speaker-test.1 speaker-test: fix typos in manpage 2006-10-01 15:16:13 +02:00
speaker-test.c speaker-test.c - fix sine generator on big-endian archs 2008-04-21 15:19:27 +02:00

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