Sentdex / pygta5

Explorations of Using Python to play Grand Theft Auto 5.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Audio issues while switching cameras - help needed

daniel-kukiela opened this issue · comments

Hi,

With this project, we are rapidly changing cameras to grab streams of both cinematic (3rd person) and hood caeras.
GTA5 lets you adjust the microphone position via:

void AUDIO::SET_MICROPHONE_POSITION(BOOL p0, float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3)

but this only seems to affect an additional microphone that's being mixed with the camera microphone, and you cannot change the position or mute the camera microphone. This causes some "vibrato"-tyle of sound (that's unpleasant to watch) since we're changing rendering cameras for a single frame at a time.
Does anyone possibly know how to either change the camera microphone position or how to mute it?