Skip to content

Commit

Permalink
Merge pull request #1465 from AndreiRudenko/main
Browse files Browse the repository at this point in the history
Fixed stereo ogg loading for native targets
  • Loading branch information
RobDangerous authored Jul 5, 2023
2 parents c932f56 + cf48fc2 commit 2462f98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/kha/Sound.hx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class Sound implements Resource {
}
else {
length = samples / samplesPerSecond;
samples *= channels;
uncompressedData = new kha.arrays.Float32Array(samples);
for (i in 0...samples) {
untyped __cpp__("*((float*)&this->uncompressedData->self.data[{0} * 4]) = data[{0}] / 32767.0f", i);
Expand Down

0 comments on commit 2462f98

Please sign in to comment.