mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
minor refactor + fix
This commit is contained in:
parent
90a4922201
commit
5657457edb
3 changed files with 33 additions and 24 deletions
|
|
@ -53,7 +53,7 @@ audio::PCM* ogg::load_pcm(const std::filesystem::path& file, bool headerOnly) {
|
|||
data.insert(data.end(), std::begin(buffer), std::begin(buffer)+ret);
|
||||
}
|
||||
}
|
||||
totalSamples = data.size();
|
||||
totalSamples = data.size() / channels / 2;
|
||||
}
|
||||
ov_clear(&vf);
|
||||
return new PCM(std::move(data), totalSamples, channels, 16, sampleRate, seekable);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue