forked from mirrors/0ad
0ebcc45237
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.