This looks potentionally dangerous because "file" is a local object. The docs are not exactly clear about it but we usually assume that the stream object needs to stay alive for the whole time the audio stream object is alive. In case of WAV files the ADPCM files actually require this. But maybe the files used here are raw PCM data and thus it does not cause any issues *so far*. I suggest to pass an Common::File object on the heap here and simply use DisposeAfterUse::YES. This should assure that no issues will pop up in case we ever change the logic for raw PCM data.