forked from mirrors/0ad
2ae95d3c49
Introduce a new `Open` method in `OggStreamImpl` that encapsulates the logic for opening Ogg Vorbis files. This method replaces the previous `Open` method and utilizes `std::runtime_error` for error reporting instead of returning error codes. The constructor has been updated to call this new method, ensuring files are opened upon instantiation. The changes streamline the code and improve error handling.