Silence output initialized using device's Mix format.
Fixed some problems while disposing DesktopDuplication resources.
Newly written audio handling in Recorder class. Silence added or frames dropped as required. Audio is written only when more than a chunk size available, etc.
Listen to audio device change notifications and refresh automatically.
Need: Long recordings with audio became either corrupted or went out of sync.
✔️ ~FFmpeg pipe deadlock seems to be solved but video and audio are getting out of sync. More work needed here.~
If you're seeing this, please help to test this work by downloading from the below link and record with audio + video.
Dev-build 0.0.3428 ~Dev-build 0.0.3414~ ~Dev-build 0.0.3405~
Changes
AudioRecorder
class.FFmpegVideoWriter
to prevent deadlock but still remain reasonably in sync by dropping frames.NAudio
package.MixedAudioProvider
doesn't add unnecessarily silence.Recorder
class. Silence added or frames dropped as required. Audio is written only when more than a chunk size available, etc.