0
0

Channel::IsPlaying returns 0 even if the Channel IS playing, when the same source is compiled under MSVC, it works fine, and returns TRUE.

This is an example of non-working code:
[code:2ofuug79]char* file = "Debug\test.mp3";
System* system = 0;
Sound* test_sound = 0;
Channel* channel = 0;

cout << "Trying to play: " << file << endl;
check( System_Create(&system) );
check( system->init(1, FMOD_INIT_NORMAL, 0) );
check( system->createSound(file, FMOD_HARDWARE, 0, &test_sound) );
check( system->playSound(FMOD_CHANNEL_FREE, test_sound, play, &channel) );
bool isPlaying = false;
check( channel->isPlaying(&isPlaying) );
cout << isPlaying;[/code:2ofuug79]

Mac OS X 10.4.3, GCC 4.0.1 XCode 2.2, FMODEX 4.02.02

  • You must to post comments
0
0

Everything seems to be fine on our end.

A lot of the examples, ie playsound call isPlaying

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.