Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I just added the ability to adjust any of the parameters for each sound effect when using sound nodes. https://robo25.itch.io/coppercube-apis-version-2 Using property attributes, you select what sound effect you want ('SoundFX') then adjust the settings as needed. Default values below can be changed via 'FXData1', 'FXData2', 'FXData3' & 'FXData4' If adjusting true/false, use 0 or 1 instead 'FXGain' has been removed as now you can edit each value yourself Sample code for using a sound node: var node = ccbGetSceneNodeFromName("Sound3D"); ccbSetSceneNodeProperty(node, "PlayMode", "nothing"); // reset playmode each time if re-using the same sound node ccbSetSceneNodeProperty(node, "SoundFX", "Echo"); // add sound effect name before adjusting values ccbSetSceneNodeProperty(node, "FXData1", 100, 50, 50); // adjust first 3 values as required ccbSetSceneNodeProperty(node, "FXData2", 1.1, 1, 16); // adjust next 3 values if applicable else ignore ccbSetSceneNodeProperty(node, "FXData3", 10, 5, 20); // adjust next 3 values if applicable else ignore ccbSetSceneNodeProperty(node, "FXData4", 90, 0, 0); // adjust last 3 values if applicable else ignore ccbSetSceneNodeProperty(node, "PlayMode", "play_once"); // play the sound effect Please test it out and let me know of any issues, or alternatively if you find any much better parameter settings than the default please post below and let us all know... |
||||
|
I've run a quick test and appears to be working ok. I like all those extra reverb params. Passing the params is a little long winded but it works. Is there a limit on the amount of parameters a function call can have ? Maybe you could pass an array variable ?? Now if only we could have multiple effects active for each sound...ha..ha..i'm asking too much now. I was thinking something like this:
Big thanks for the update Robo! |
||||
|
Thanks 'gazzauk' - yes its a little long winded but the best I could come up with for now, and yes, I thought about passing an array instead of groups of vector 3's - might look into that later. You would have to ask Niko about multiple soundFX for the same sound - somehow I would doubt it but you can ask him... |
||||
|
Woho, thanks for this R! |
||||
|
|