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

Author Topic: Something about function names  (Read 23504 times)

0 Members and 2 Guests are viewing this topic.

zac

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Something about function names
« on: October 10, 2008, 12:08:53 am »
No, this is not another request about "How about obeying C++-naming-conventions", but I think it is rather annoying that the function for opening a music file is not named "OpenFromFile" (as in tutorial and documentation), but simply Music::Open... (even in the tutorial, it is also mentioned as Music::Open and Music::OpenFromFile, but the first one not very explicitely...)
How about changing docu/tuts?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Something about function names
« Reply #1 on: October 10, 2008, 07:52:24 am »
I failed to find any documentation or tutorial still using Music::Open. Can you show me ?
Laurent Gomila - SFML developer

zac

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Something about function names
« Reply #2 on: October 10, 2008, 04:34:14 pm »
Well, there is a little mention of Open in
http://www.sfml-dev.org/tutorials/1.3/audio-music.php

Quote

The call to Open or OpenFromMemory actually doesn't start the music, only a call to Play does.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Something about function names
« Reply #3 on: October 10, 2008, 04:43:04 pm »
It's now fixed, thank you :)
Laurent Gomila - SFML developer

 

anything