questions about VU meters.
I am coding a progrgam and want to display a VU meter. I use FSOUND_GetCurrentVU() for each channel. It seems to work but after a while (running time) it is as if all channels have a zero VU value. the sounds do not stop… they are playing. But they don’t have a VU value. Again, after a while they work properly. I use FSOUND_INIT_ACCURATEGETCURRENTVU in FSOUND_Init() and FSOUND_PlaySoundEx() for playback. the wavs are about 300K (1 sec) each. I don’t know if this is correct, but do I need to use DSP?
Also, I use an FMUSIC_MODULE * to play a .mod sample. when I want to change the track, I use FMUSIC_StopSong() followed by FMUSIC_LoadSong() and FMUSIC_PlaySong() for the next track. (I have one pointer to do the job). But, again when the track is changed, most of the times the new track does not return VU values. fmod uses about 6.5megs of memory (returned by FSOUND_GetMemoryStats()).
But the track and the sounds are playing normally.
To sum up, there are times when the VU values are all zero and times when they are correct when the program is running. I would appreciate a little help…
- sakis900 asked 14 years ago
thx a lot brett… this was the issue. the new .dll fixed it without any code modifications… ah, I forgot to mention: I read a topic about tfmx modules. you said that there were no people asking about it. well, I am one of those who cannot find a tfmx player under windoz. so, it would be wise to provide one within fmod…
again thx for your time and help brett…
- sakis900 answered 14 years ago
Please login first to submit.