sskodje / ScreenRecorderLib

A .NET library for screen recording in Windows, using native Microsoft Media Foundation for realtime encoding to h264 video or PNG images.
MIT License
414 stars 94 forks source link

Critical Audio Bug #249

Closed ranwer-dev closed 1 year ago

ranwer-dev commented 1 year ago

With the latest master branch build, audio is getting recorded like cartoonish sound. It was fine when there was LoopbackCapture before WASAPICapture was added. Sometimes System audio works normally, otherwise it also plays cartoonish.

https://github.com/sskodje/ScreenRecorderLib/assets/92986100/b27e33f6-8e5a-411c-856c-d5c4f36c178a

sskodje commented 1 year ago

I can't reproduce, so i'm going to need some logs if i'm to look at this.

ranwer-dev commented 1 year ago

Attached are another video test and log file. It was a 30 seconds recording as you see from the timer. But the resultant video is 15 sec long. Perhaps it's doubling the speed?

Log1.txt

https://github.com/sskodje/ScreenRecorderLib/assets/92986100/9e755ad8-5c5b-4081-91d4-3185319c5047

sskodje commented 1 year ago

I think i found the error, and pushed a fix with 9b57573.

ranwer-dev commented 1 year ago

Yeap, this seems to be fixed now 👍