I have tested this multiple times. When I have music from another application running in the background and enable raytracing on startup in minecraft my audio goes wack and is full blast and then normal and then full blast and normal again. This only happens when RTX with Vanilla RTX is enabled and running in game. I am not sure how to solve this.
#Audio Issues when enabling RTX in game
3 messages · Page 1 of 1 (latest)
It sounds like your issue is a bit different from this, but there's been audio related bugs. #1233621882465419335 message
Try changing the audio devices back and forth and see what happens