The scene I'm trying to use is completely empty, it happens even if I try to record a simple mp3.
OBS's cpu usage never goes above 15% even while recording/streaming (I don't think my i7 4770 is the problem, i was thinking about something with the bitrates or the buffer size, but I tried everything)
EDIT: Tried to add the video to an empty OBS Classic scene, and it works perfectly there, but, well, I really need it on the better Studio version
Actually, I suggested that you try it in a fresh scene
collection. OBS Studio sources are global, so any source in any scene within the same scene collection could affect things throughout that scene collection.
You mention OBS Studio CPU usage, but I mentioned overall system CPU usage. If the CPU maxes out, the audio buzzes. I reliably reproduced this effect about a month ago. If a single core maxed out, and the audio source is running a process/thread on that core, then it may exhibit the same buzz. Someone else can correct me on this if they know better. I know a 100% utilized CPU will do this, but I'm not totally sure about a maxed core.
That said, you do have some things in your log that are of interest upon closer examination.
All of your audio sample rates are set to 48KHz. Did you do that intentionally, or was it automatically set that way? You could try setting them to 44.1KHz to see if that makes a difference.
Code:
20:24:26.705: Output 'adv_file_output': Number of skipped frames due to encoding lag: 10 (1.6%)
Your encoder is skipping frames.
Code:
20:24:05.586: [Media Foundation encoder]: SetCodecProperty(codecApi, CODECAPI_AVEncCommonLowLatency, lowLatency) failed, Parametro non corretto. (0x80070057)
20:24:05.586: [Media Foundation encoder]: SetCodecProperty(codecApi, CODECAPI_AVEncMPVDefaultBPictureCount, UINT32(bFrames)) failed, Parametro non corretto. (0x80070057)
20:24:05.586: [Media Foundation encoder]: SetCodecProperty(codecApi, CODECAPI_AVEncVideoEncodeQP, UINT64(qp.Pack(true))) failed, Parametro non corretto. (0x80070057)
20:24:05.586: [Media Foundation encoder]: SetCodecProperty(codecApi, CODECAPI_AVEncVideoEncodeFrameTypeQP, UINT64(qp.Pack(false))) failed, Parametro non corretto. (0x80070057)
Since you said that also you experience this problem when your encoder is set to x264, this might not be related, but it does stand out. You're using the Media Foundation NVENC, which was deprecated in 0.14.0. I'm not entirely sure what causes these specific errors. Have you considered trying the newer "NVENC H.264" option instead of "NVIDIA NVENC H.264 Encoder (Media Foundation)"? Please note, that you may lose the deprecated NVENC if you exit OBS Studio with something else selected.
What Nvidia drivers are you using?
Try as I might, I have been unable to replicate your issue, even after largely duplicating your settings on a system with an i5-3570K and a GTX 760. I've attached a log to show my latest attempt to replicate your issue. I haven't tried to max the CPU in my attempts, but it would be trivial to do. If you have a video sample with audio exhibiting the issue, that may help us.