Change from error codes to Result + SndFileError