mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-23 02:16:31 +01:00
Fixed warning
This commit is contained in:
parent
ef6875f4ed
commit
bbef4ad267
1 changed files with 2 additions and 1 deletions
|
@ -806,7 +806,7 @@ static void set_params(void)
|
||||||
chunk_size = snd_pcm_hw_params_get_period_size(params, 0);
|
chunk_size = snd_pcm_hw_params_get_period_size(params, 0);
|
||||||
buffer_size = snd_pcm_hw_params_get_buffer_size(params);
|
buffer_size = snd_pcm_hw_params_get_buffer_size(params);
|
||||||
if (chunk_size == buffer_size) {
|
if (chunk_size == buffer_size) {
|
||||||
error("Can't use period equal to buffer size (%u == %lu)", chunk_size, buffer_size);
|
error("Can't use period equal to buffer size (%u == %lu)", chunk_size, (long)buffer_size);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
snd_pcm_sw_params_current(handle, swparams);
|
snd_pcm_sw_params_current(handle, swparams);
|
||||||
|
@ -1682,6 +1682,7 @@ void playbackv_go(int* fds, unsigned int channels, size_t loaded, size_t count,
|
||||||
{
|
{
|
||||||
int r;
|
int r;
|
||||||
size_t vsize;
|
size_t vsize;
|
||||||
|
|
||||||
unsigned int channel;
|
unsigned int channel;
|
||||||
u_char *bufs[channels];
|
u_char *bufs[channels];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue