OLS: fix multi-channel capture

This commit is contained in:
Bert Vermeulen 2010-08-11 18:37:09 +02:00
parent edc508d49c
commit f0d1b53e56
1 changed files with 1 additions and 1 deletions

View File

@ -586,7 +586,7 @@ static int receive_data(int fd, int revents, void *user_data)
* store it in reverse order here, so we can dump
* this on the session bus later.
*/
offset = (limit_samples - num_transfers) * 4;
offset = (limit_samples - num_transfers / num_channels) * 4;
memcpy(raw_sample_buf + offset, sample, 4);
if (buffer == sample)