alstream.cpp changes

This commit is contained in:
meowtech 2026-03-30 20:54:52 +00:00
parent 78384d56c9
commit 41731bc796
2 changed files with 5 additions and 5 deletions

View file

@ -208,15 +208,15 @@ struct ALStreamOpenHandler : FileSystem::OpenHandler
ALDataSource *source;
std::string errorMsg;
ALStreamOpenHandler(SDL_IOStream &srcOps, bool looped)
: srcOps(&srcOps), looped(looped), source(0)
ALStreamOpenHandler(SDL_IOStream* &srcOps, bool looped)
: srcOps(srcOps), looped(looped), source(0)
{}
bool tryRead(SDL_IOStream &ops, const char *ext)
bool tryRead(SDL_IOStream* &ops, const char *ext)
{
/* Copy this because we need to keep it around,
* as we will continue reading data from it later */
*srcOps = ops;
srcOps = ops;
/* Try to read ogg file signature */
char sig[5] = { 0 };

View file

@ -52,7 +52,7 @@ public:
* After this function returns, ops becomes invalid, so don't take
* references to it. Instead, copy the structure without closing
* if you need to further read from it later. */
virtual bool tryRead(SDL_IOStream &ops, const char *ext) = 0;
virtual bool tryRead(SDL_IOStream* &ops, const char *ext) = 0;
};
void openRead(OpenHandler &handler,