mirror of
https://github.com/alexkay/spek.git
synced 2025-04-22 03:10:29 +03:00
fix non-planar sample offset calculation (channel switching did not work)
This commit is contained in:
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user