SFML community forums

Help => Audio => Topic started by: Jebbs on August 05, 2017, 07:24:11 pm

Title: Why InputSoundFile::openForWriting?
Post by: Jebbs on August 05, 2017, 07:24:11 pm
Why does openForWriting exist in the InputSoundFile header? It seems to be a leftover from SoundFile and has no definition in the cpp file. InputSoundFile should provide read-only access to the file anyway, so this is a weird method to have.

Can it be gotten rid of?
Title: Re: Why InputSoundFile::openForWriting?
Post by: eXpl0it3r on August 05, 2017, 08:10:47 pm
This does seem odd indeed and I don't think it was used with libsndfile. Laurent wrote it, so maybe he's some vague memory what he was trying to do here. ;)
Title: Re: Why InputSoundFile::openForWriting?
Post by: Laurent on August 05, 2017, 09:31:11 pm
If it's not defined, and not used, then it's clearly a leftover and can safely be removed.