Revision bdff253c audio/alsaaudio.c
b/audio/alsaaudio.c | ||
---|---|---|
763 | 763 |
} |
764 | 764 |
} |
765 | 765 |
|
766 |
static int alsa_run_out (HWVoiceOut *hw) |
|
766 |
static int alsa_run_out (HWVoiceOut *hw, int live)
|
|
767 | 767 |
{ |
768 | 768 |
ALSAVoiceOut *alsa = (ALSAVoiceOut *) hw; |
769 |
int live, decr;
|
|
769 |
int decr; |
|
770 | 770 |
snd_pcm_sframes_t avail; |
771 | 771 |
|
772 |
live = audio_pcm_hw_get_live_out (hw); |
|
773 |
if (!live) { |
|
774 |
return 0; |
|
775 |
} |
|
776 |
|
|
777 | 772 |
avail = alsa_get_avail (alsa->handle); |
778 | 773 |
if (avail < 0) { |
779 | 774 |
dolog ("Could not get number of available playback frames\n"); |
Also available in: Unified diff