AddSoundToPipingSession matching

This commit is contained in:
Dethrace Labs 2025-11-28 22:24:41 +13:00
parent 41ce4602da
commit d3cea1f1b2
1 changed files with 2 additions and 2 deletions

View File

@ -705,11 +705,11 @@ void AddSoundToPipingSession(tS3_outlet_ptr pOutlet, int pSound_index, tS3_volum
data.pitch = pPitch;
if (pPos != NULL) {
BrVector3Copy(&data.position, pPos);
data.position = *pPos;
} else {
BrVector3Set(&data.position, 0.f, 0.f, 0.f);
}
data.volume = (pR_volume << 8) | (pL_volume << 0);
data.volume = (pR_volume << 8) + pL_volume;
data.outlet_index = GetIndexFromOutlet(pOutlet);
AddDataToSession(pSound_index, &data, sizeof(tPipe_sound_data));
}