mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-08-15 14:43:32 -07:00
Replaces the for(;;) loop in GetNextChunk with a clearer while (bytesRead < size) loop for better readability and intent. Other improvements: - Uses constexpr for constant audio format parameters - Replaces C-style cast with reinterpret_cast - Ensures consistent use of static_cast for type conversions - Improves comment formatting This refactor maintains the original logic while aligning with modern C++ best practices. |
||
|---|---|---|
| .. | ||
| ogg.cpp | ||
| ogg.h | ||
| OggData.cpp | ||
| OggData.h | ||
| SoundData.cpp | ||
| SoundData.h | ||