mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 06:51:51 +00:00
ogg decoding fix
This commit is contained in:
parent
d1b145e7a4
commit
83d6990852
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ audio::PCM* ogg::load_pcm(const std::filesystem::path& file, bool headerOnly) {
|
||||||
} else if (ret < 0) {
|
} else if (ret < 0) {
|
||||||
std::cerr << "ogg::load_pcm: " << vorbis_error_message(ret) << std::endl;
|
std::cerr << "ogg::load_pcm: " << vorbis_error_message(ret) << std::endl;
|
||||||
} else {
|
} else {
|
||||||
data.insert(data.end(), std::begin(buffer), std::end(buffer));
|
data.insert(data.end(), std::begin(buffer), std::begin(buffer)+ret);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue