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

Author Topic: Audiostreams tutorial error  (Read 25632 times)

0 Members and 2 Guests are viewing this topic.

Srejv

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
Audiostreams tutorial error
« on: November 12, 2007, 03:37:06 pm »
(gosh I'm only having trouble.. that's not okay >_<)

Trying to run audiostream tutorial... thing... to help me understand how it works, but I get this error. It looks like it checks out since it returns what it's supposed to return, but eclipse thinks differently. I just updated from SVN (maybe I updated wrongly).

Code: [Select]

no match for 'operator=' in '((MyCustomStream*)this)->MyCustomStream::myBuffer = (&SoundData)->sf::SoundBuffer::GetSamples()' AudioStuff/src main.cpp line 46 1194877991497 1244



Also, is it -lsfml-audio which is used for all audio?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Audiostreams tutorial error
« Reply #1 on: November 12, 2007, 03:43:32 pm »
Damn, I really thought I fixed this piece of code a long time ago. Apparently I corrected only the tutorial, and forgot the source code ;)

Thanks !

Quote
Also, is it -lsfml-audio which is used for all audio?

Yes sir.
Laurent Gomila - SFML developer

Srejv

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
Audiostreams tutorial error
« Reply #2 on: November 12, 2007, 04:42:31 pm »
Okay.  :) Thank you!

 

anything