"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pulse/pcm_pulse.c" between
alsa-plugins-1.2.2.tar.bz2 and alsa-plugins-1.2.5.tar.bz2

About: ALSA (Advanced Linux Sound Architecture) - Additional plugins for various audio libraries and sound servers.

pcm_pulse.c  (alsa-plugins-1.2.2.tar.bz2):pcm_pulse.c  (alsa-plugins-1.2.5.tar.bz2)
skipping to change at line 524 skipping to change at line 524
const void *src_buf; const void *src_buf;
if (pa_stream_peek(pcm->stream, &src_buf, &frag_length) < 0) { if (pa_stream_peek(pcm->stream, &src_buf, &frag_length) < 0) {
ret = -EIO; ret = -EIO;
goto finish; goto finish;
} }
if (frag_length == 0) if (frag_length == 0)
break; break;
src_buf = (char *) src_buf + pcm->offset; if (src_buf) {
frag_length -= pcm->offset; src_buf = (char *) src_buf + pcm->offset;
frag_length -= pcm->offset;
if (frag_length > remain_size) {
pcm->offset += remain_size; if (frag_length > remain_size) {
frag_length = remain_size; pcm->offset += remain_size;
} else frag_length = remain_size;
pcm->offset = 0; } else
pcm->offset = 0;
memcpy(dst_buf, src_buf, frag_length);
memcpy(dst_buf, src_buf, frag_length);
} else {
/* If there is a hole in the stream, generate silence. */
int sample_size = snd_pcm_format_physical_width(io->forma
t) / 8;
snd_pcm_format_set_silence(io->format, dst_buf, frag_leng
th / sample_size);
}
if (pcm->offset == 0) if (pcm->offset == 0)
pa_stream_drop(pcm->stream); pa_stream_drop(pcm->stream);
dst_buf = (char *) dst_buf + frag_length; dst_buf = (char *) dst_buf + frag_length;
remain_size -= frag_length; remain_size -= frag_length;
pcm->last_size -= frag_length; pcm->last_size -= frag_length;
} }
/* Make sure the buffer pointer is in sync */ /* Make sure the buffer pointer is in sync */
 End of changes. 1 change blocks. 
10 lines changed or deleted 18 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)