mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 05:55:42 +01:00
speaker-test.c - add readability comments to speaker channels
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
08837a80e0
commit
0e8fcfc2ce
1 changed files with 36 additions and 36 deletions
|
@ -85,47 +85,47 @@ static const char *given_test_wav_file = NULL;
|
||||||
static char *wav_file_dir = SOUNDSDIR;
|
static char *wav_file_dir = SOUNDSDIR;
|
||||||
|
|
||||||
static const char *const channel_name[MAX_CHANNELS] = {
|
static const char *const channel_name[MAX_CHANNELS] = {
|
||||||
N_("Front Left"),
|
/* 0 */ N_("Front Left"),
|
||||||
N_("Front Right"),
|
/* 1 */ N_("Front Right"),
|
||||||
N_("Rear Left"),
|
/* 2 */ N_("Rear Left"),
|
||||||
N_("Rear Right"),
|
/* 3 */ N_("Rear Right"),
|
||||||
N_("Center"),
|
/* 4 */ N_("Center"),
|
||||||
N_("LFE"),
|
/* 5 */ N_("LFE"),
|
||||||
N_("Side Left"),
|
/* 6 */ N_("Side Left"),
|
||||||
N_("Side Right"),
|
/* 7 */ N_("Side Right"),
|
||||||
N_("Channel 9"),
|
/* 8 */ N_("Channel 9"),
|
||||||
N_("Channel 10"),
|
/* 9 */ N_("Channel 10"),
|
||||||
N_("Channel 11"),
|
/* 10 */ N_("Channel 11"),
|
||||||
N_("Channel 12"),
|
/* 11 */ N_("Channel 12"),
|
||||||
N_("Channel 13"),
|
/* 12 */ N_("Channel 13"),
|
||||||
N_("Channel 14"),
|
/* 13 */ N_("Channel 14"),
|
||||||
N_("Channel 15"),
|
/* 14 */ N_("Channel 15"),
|
||||||
N_("Channel 16")
|
/* 15 */ N_("Channel 16")
|
||||||
};
|
};
|
||||||
|
|
||||||
static const int channels4[] = {
|
static const int channels4[] = {
|
||||||
0,
|
0, /* Front Left */
|
||||||
1,
|
1, /* Front Right */
|
||||||
3,
|
3, /* Rear Right */
|
||||||
2
|
2, /* Rear Left */
|
||||||
};
|
};
|
||||||
static const int channels6[] = {
|
static const int channels6[] = {
|
||||||
0,
|
0, /* Front Left */
|
||||||
4,
|
4, /* Center */
|
||||||
1,
|
1, /* Front Right */
|
||||||
3,
|
3, /* Rear Right */
|
||||||
2,
|
2, /* Rear Left */
|
||||||
5
|
5, /* LFE */
|
||||||
};
|
};
|
||||||
static const int channels8[] = {
|
static const int channels8[] = {
|
||||||
0,
|
0, /* Front Left */
|
||||||
4,
|
4, /* Center */
|
||||||
1,
|
1, /* Front Right */
|
||||||
7,
|
7, /* Side Right */
|
||||||
3,
|
3, /* Rear Right */
|
||||||
2,
|
2, /* Rear Left */
|
||||||
6,
|
6, /* Side Left */
|
||||||
5
|
5, /* LFE */
|
||||||
};
|
};
|
||||||
|
|
||||||
static void generate_sine(uint8_t *frames, int channel, int count, double *_phase) {
|
static void generate_sine(uint8_t *frames, int channel, int count, double *_phase) {
|
||||||
|
|
Loading…
Reference in a new issue