0
0

Hi Folks,

I am creating a racing game, I am having a few problems with my network car sounds. They are only being audible when quite close (perhaps 10-15m). When I can start to hear the sounds they are quite loud already (rather than smoothly ramping up volume from a further distance.

I suspect it is using all the "real" channels for the player car, but i’m not sure. I am mixing a number of engine sounds depending on what RPM and throttle is being used.

There should only be 2 engine sounds, 2 transmission sounds, a wind noise + up to 4 wheels squealing, so i think that should be a max of 9 channels being used by the player car (leaving plenty for any network car that drives by).

I called getChannelsPlaying and it returns 39 (oddly) for a single car. I assume this includes virtual channels? I still don’t think it should add up to 39, but i will check.

Things I’ve tried: –

  • _system->setSoftwareChannels(100);
  • initing with FMOD_INIT_VOL0_BECOMES_VIRTUAL as the unused engine sounds should have a zero volume
  • fmodSound->set3DMinMaxDistance(20,10000); in order that the network car is loud enough

Can anyone think of what I could be doing wrong in this case?
Thanks for your help
All the best,
Ash

  • You must to post comments
0
0

I found the problem, it was unrelated to fmod, I wasn’t sending through the gear for further away cars, therefore the RPM was 0, which made the volume zero.

Oops 😳

All the best,
Ash

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.