Hi,
I working on a project where we have a voice chat, and all the voices are handled by FMOD.
I have a question about the creation and playing of the sound from the CORE level.
How do We can load all the sounds created on a BUS?
This will solve our problem of return on the speaking…
FMODLib.MODE soundMode = FMODLib.MODE.OPENUSER |
FMODLib.MODE.LOOP_NORMAL;
res = FMODUnity.RuntimeManager.CoreSystem.createSound("Photon AudioOut", soundMode, ref exinfo, out sound);
if (res != FMODLib.RESULT.OK)
{
Error = "failed to createSound: " + res;
logger.LogError(logPrefix + Error);
return;
}
voiceReciveBus = FMODUnity.RuntimeManager.GetBus("bus:/Voices/VoiceReceive");
voiceReciveBus.getChannelGroup(out voiceReciveChannel);
res = coreSystem.playSound(sound, voiceReciveChannel, false, out channel);
channel.getChannelGroup(out FMODLib.ChannelGroup cg);
if (res != FMODLib.RESULT.OK)
{
Error = "failed to playSound: " + res;
logger.LogError(logPrefix + Error);
return;
}
This code works fine but on the mixer we get nothing…
I hope to find a solution.
Kind regard,
Nicholas