fix non-planar sample offset calculation (channel switching did not work)

This commit is contained in:
Sami Farin 2025-01-18 21:51:14 +02:00
parent b1600d9926
commit 765f9ad4c8

@ -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) {