Photon Voice Chat Volume

edited June 28 in Photon Voice
My chat volume is very low.I tried this from an old post.
At the start of OnAudioFrame method in "PhotonVoiceNetworks.cs" I added these lines:
    for(int i =0; i < frame.Length; i++)
        frame[i] *= (AppSettings.VoiceChatVolume * 5);
Only the AppSettings gives error( redlined ).The rest of it seems ok. The .VoiceChatVolume is Not redlined.
The AppSettings isn't found in the project search.
Any ideas?


  • JohnTubeJohnTube mod
    edited June 28
    Hi @stvster,

    Thank you for choosing Photon!

    Just replace AppSettings.VoiceChatVolume * 5 with a gain factor (static or variable) of your choice.
    Get rid of AppSettings.VoiceChatVolume which is part of another developer's custom codebase.
  • Hi JohnTube ,
    Thanx for the answer.I tried this:
    for(int i =0; i < frame.Length; i++)
    frame[i] *= ( 5);

    no errors /game runs but no volume increase.I tried different variables(5 or 10 or 20 etc)
    But no difference.Will keep trying.
    Thanx again,
Sign In or Register to comment.