mirror of
https://github.com/alsa-project/alsa-utils
synced 2025-01-03 09:09:45 +01:00
aplay: fix typo & silence warning..
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
7b14c00b56
commit
6017849f1b
1 changed files with 6 additions and 4 deletions
|
@ -1864,7 +1864,7 @@ static u_char **remap_datav(u_char **data, size_t count)
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#define remap_data(data, count) (data)
|
#define remap_data(data, count) (data)
|
||||||
#define remapv_data(data, count) (data)
|
#define remap_datav(data, count) (data)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -2122,7 +2122,6 @@ static void voc_play(int fd, int ofs, char *name)
|
||||||
u_char *data, *buf;
|
u_char *data, *buf;
|
||||||
char was_extended = 0, output = 0;
|
char was_extended = 0, output = 0;
|
||||||
u_short *sp, repeat = 0;
|
u_short *sp, repeat = 0;
|
||||||
size_t silence;
|
|
||||||
off64_t filepos = 0;
|
off64_t filepos = 0;
|
||||||
|
|
||||||
#define COUNT(x) nextblock -= x; in_buffer -= x; data += x
|
#define COUNT(x) nextblock -= x; in_buffer -= x; data += x
|
||||||
|
@ -2226,9 +2225,12 @@ static void voc_play(int fd, int ofs, char *name)
|
||||||
COUNT1(1);
|
COUNT1(1);
|
||||||
hwparams.rate = 1000000 / (256 - hwparams.rate);
|
hwparams.rate = 1000000 / (256 - hwparams.rate);
|
||||||
set_params();
|
set_params();
|
||||||
silence = (((size_t) * sp) * 1000) / hwparams.rate;
|
|
||||||
#if 0
|
#if 0
|
||||||
d_printf("Silence for %d ms\n", (int) silence);
|
{
|
||||||
|
size_t silence;
|
||||||
|
silence = (((size_t) * sp) * 1000) / hwparams.rate;
|
||||||
|
d_printf("Silence for %d ms\n", (int) silence);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
voc_write_silence(*sp);
|
voc_write_silence(*sp);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue