diff --git a/src/spek-audio.cc b/src/spek-audio.cc index 5bb18b6..a52b2c7 100644 --- a/src/spek-audio.cc +++ b/src/spek-audio.cc @@ -313,7 +313,7 @@ int AudioFileImpl::read() offset = sample; } else { data = this->frame->data[0]; - offset = sample * this->channels; + offset = sample * this->channels + this->channel; } float value; switch (format) {