0
0

Hello there,

I’m new at programming and at FMOD, so I apologize if this is a lame question. I’ve created a class called BGM that loads and plays midis. It contains a private FMUSIC_MODULE called bgm. I’ve just created a new member function to affect the speed of the midi, but I’m getting errors. When I pass the function FMUSIC_SetMasterSpeed this:

FMUSIC_SetMasterSpeed(bgm, scale);

I get an error saying that bgm is an unidentified variable. When I pass the function this:

FMUSIC_SetMasterSpeed(BGM::bgm, scale);

I get an error saying it is an “illegal reference to non-static member”.

Does anyone know where I’m going wrong? Thanks so much for the help.

  • You must to post comments
0
0

Hah, I fixed my own problem. It was a minor problem with syntax. Thanks :)

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.