Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Why InputSoundFile::openForWriting?  (Read 636 times)

0 Members and 1 Guest are viewing this topic.

Jebbs

  • Sr. Member
  • ****
  • Posts: 358
  • DSFML Developer
    • View Profile
    • Email
Why InputSoundFile::openForWriting?
« 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?
DSFML - SFML for the D Programming Language.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 9596
    • View Profile
    • development blog
    • Email
Re: Why InputSoundFile::openForWriting?
« Reply #1 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. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32451
    • View Profile
    • SFML's website
    • Email
Re: Why InputSoundFile::openForWriting?
« Reply #2 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.
Laurent Gomila - SFML developer

 

anything