According to my understanding there is no way to play a sound file straight to the one of eight channels on a 7.1 surround system.
I want to mimic the positions of the speakers within the engine so I could fake this functionality, but I’m now sure how. I’ve tried playing a sound on the right channel using this code:
FVector position = GetActorLocation();
position += GetActorRightVector() * 100.0f;
UGameplayStatics::PlaySoundAtLocation(this, Sounds[0], position);
(Sounds[0] is USoundBase: TArray Sounds
)
But it plays all over the map, I can hear it in both the left and right speakers.
Any idea how to achieve this? Preferably with C++ code instead of blueprints.