Fmod isPlaying Questions!!!Please Help!!!

Get answers to all your basic programming questions. No Ogre questions, please!
Post Reply
anthony091527
Gnoblar
Posts: 3
Joined: Fri May 23, 2014 3:53 am

Fmod isPlaying Questions!!!Please Help!!!

Post by anthony091527 » Fri May 23, 2014 4:00 am

Hello everyone!I use Fmod in the Ogre. And I want to judge the sound file is finished playing! So i use the function named 'isPlaying' in the Fmod Library.But the function always return 'FMOD_ERR_INVALID_HANDLE'.Please help me! Thank you! I have the following code in step:

Code: Select all

int channelIndexTemp;
bool isPlaying;
FMOD_RESULT result;
FMOD::Channel *channel;
if (Channelndex)
    channelIndexTemp = *Channelndex;
float tempTime = GetSoundLength(channelIndexTemp);
result = system->getChannel(channelIndexTemp, &channel);
if (result == FMOD_OK)
    result = channel->isPlaying(&isPlaying);
The 'isPlaying' value is always 'false'.
0 x

User avatar
c6burns
Beholder
Posts: 1511
Joined: Fri Feb 22, 2013 4:44 am
Location: Deep behind enemy lines

Re: Fmod isPlaying Questions!!!Please Help!!!

Post by c6burns » Fri May 23, 2014 4:25 am

Sounds like an fmod problem, not an ogre one :D
0 x

anthony091527
Gnoblar
Posts: 3
Joined: Fri May 23, 2014 3:53 am

Re: Fmod isPlaying Questions!!!Please Help!!!

Post by anthony091527 » Fri May 23, 2014 4:37 am

c6burns wrote:Sounds like an fmod problem, not an ogre one :D
Yeah, i want to ask for someboby who used it for help.
0 x

User avatar
c6burns
Beholder
Posts: 1511
Joined: Fri Feb 22, 2013 4:44 am
Location: Deep behind enemy lines

Re: Fmod isPlaying Questions!!!Please Help!!!

Post by c6burns » Fri May 23, 2014 5:08 am

There's probably a few people who've used it hanging out here:
http://www.fmod.org/forum/
0 x

anthony091527
Gnoblar
Posts: 3
Joined: Fri May 23, 2014 3:53 am

Re: Fmod isPlaying Questions!!!Please Help!!!

Post by anthony091527 » Fri May 23, 2014 6:34 am

Thank you very much!
0 x

Post Reply