Commit cff29f5e authored by Max Kellermann's avatar Max Kellermann

alsa: use snd_pcm_sframes_t instead of int

snd_pcm_writei() returns the type snd_pcm_sframes_t, not int. Use the correct variable type.
parent 855054fe
......@@ -490,12 +490,11 @@ static size_t
alsa_play(void *data, const void *chunk, size_t size, GError **error)
{
struct alsa_data *ad = data;
int ret;
size /= ad->frame_size;
while (true) {
ret = ad->writei(ad->pcm, chunk, size);
snd_pcm_sframes_t ret = ad->writei(ad->pcm, chunk, size);
if (ret > 0)
return ret * ad->frame_size;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment