0
0

I’m new to fmod, but I have enjoyed learning some basic stuff by going through the examples. My project is a multi channel sound installation using multiple speakers. I use the mac and have a firewire m-audio box that gives 10 audio outs.

The multispeakeroutput example is my starting point. My speakers will be positioned on the circumference of a circle and I want to locate sounds using a kind of multi-channel pan. That is, I want to be able to individually control the level on each speaker for sample playback and have multple samples going at the same time.

I think I need to use FMOD_SPEAKERMODE_RAW. With 5.1 the stereo image position is set with setSpeakerMix(). Can anyone suggest the best approach in RAW mode?

Rob

  • You must to post comments
0
0

yes I would recommend speakermode_raw, as there is no defined speaker layout for your setup.
To set each speaker level from input to output, i would recommend Channel::setSpeakerLevels

  • You must to post comments
0
0

Thanks Brett. I’ve got a bit further now. I’m wondering if it is possible to call set3DAttributes() on a channel while it is playing. Eg [code:2um2o9k8]result = channel->set3DAttributes( &spos, &svel );[/code:2um2o9k8]
When I do this with [code:2um2o9k8]system->setSpeakerMode(FMOD_SPEAKERMODE_STEREO); [/code:2um2o9k8]
I don’t get smooth stereo panning and the stereo position seems to jump as the position of the set3DAttributes changes from the left to the right of the listener.

I can’t see an example of using set3DAttributes() while the sound channel is playing, so wondering if that is supported.

Rob

  • You must to post comments
0
0

I just discovered that smooth panning can be achieved by explicitly setting the listener 3d position, ensuring that the Z co-ordinate is non-zero (I used 0.1f).

Rob

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.