"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "axfer/xfer-libasound-timer-mmap.c" between
alsa-utils-1.2.1.tar.bz2 and alsa-utils-1.2.2.tar.bz2

About: ALSA (Advanced Linux Sound Architecture) - Utilities.

xfer-libasound-timer-mmap.c  (alsa-utils-1.2.1.tar.bz2):xfer-libasound-timer-mmap.c  (alsa-utils-1.2.2.tar.bz2)
skipping to change at line 103 skipping to change at line 103
static void *get_buffer(struct libasound_state *state, static void *get_buffer(struct libasound_state *state,
const snd_pcm_channel_area_t *areas, const snd_pcm_channel_area_t *areas,
snd_pcm_uframes_t frame_offset) snd_pcm_uframes_t frame_offset)
{ {
struct map_layout *layout = state->private_data; struct map_layout *layout = state->private_data;
void *frame_buf; void *frame_buf;
if (layout->vector == NULL) { if (layout->vector == NULL) {
char *buf; char *buf;
buf = areas[0].addr + snd_pcm_frames_to_bytes(state->handle, buf = areas[0].addr;
frame_offset); buf += snd_pcm_frames_to_bytes(state->handle, frame_offset);
frame_buf = buf; frame_buf = buf;
} else { } else {
int i; int i;
for (i = 0; i < layout->samples_per_frame; ++i) { for (i = 0; i < layout->samples_per_frame; ++i) {
layout->vector[i] = areas[i].addr; layout->vector[i] = areas[i].addr;
layout->vector[i] += snd_pcm_samples_to_bytes( layout->vector[i] += snd_pcm_samples_to_bytes(
state->handle, frame_offset); state->handle, frame_offset);
} }
frame_buf = layout->vector; frame_buf = layout->vector;
} }
 End of changes. 1 change blocks. 
2 lines changed or deleted 2 lines changed or added

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