jarangmandi / BFSGSimCom

A TS3 plugin that supports changing channels through tuning of flight simulator radios
4 stars 5 forks source link

Introduce range effects / white noise on received audio #40

Open jarangmandi opened 5 years ago

jarangmandi commented 5 years ago

Needs to be optional...

SIMCOMX can do it so it's achievable.

Will need to have client update TS connection with current position so that range can be calculated and attenuation applied by other clients. ATC may be a problem if the "controller" isn't physically present at the airfield - unless we include an override that adopts the position of the station as the position of the client...

jarangmandi commented 5 years ago

Need to communicate current position - through setting CLIENT_META_DATA string. Ideally, this will work with other plugins - so tag our data, append it if it isn't there, or replace it if it is.

jarangmandi commented 5 years ago

Range effects - need to continually iterate through clients in current channel and "setClientVolumeModifier" on each based on range from self.

jarangmandi commented 5 years ago

Need option to set current position to be that of the tuned station if available so that people can work ATC even when they're not at the airfield.

jarangmandi commented 5 years ago

White noise... There's a "ts3_functions.playWaveFileHandle" function that looks like it returns a file handle that can be started and stopped with "pauseWaveFileHandle", and destroyed by "closeWaveFileHandle". Needs to be started and stopped when someone starts and stops talking - which can be discovered through the "onTalkStatusChangeEvent". Need to source a suitable file.