directsoundsrc: Clicks in sound when recording audio
Describe your issue
Clicks in sound when recording audio using directsoundsrc
plugin:
gst-launch-1.0 -v directsoundsrc ! wavenc ! filesink location="record.wav"
Expected Behavior
The sound recorded in a wav file is clear, without clicks.
Observed Behavior
Periodic click sounds in a wav file.
Setup
- Operating System: Windows 10 21H2 (build 19044.3086)
- Device: Computer (over-ear headphones with wire)
- GStreamer Version: 1.24.1 (mingw-w64-x86_64-gstreamer 1.24.1-1)
- Command line: MSYS2(MINGW64)
Steps to reproduce the bug
- Setup MSYS2;
- Goto
MINGW64
env; - Install gstreamer and plugins:
pacman -S mingw-w64-x86_64-gstreamer mingw-w64-x86_64-gst-plugins-bad
- Run record:
gst-launch-1.0 -v directsoundsrc ! wavenc ! filesink location="record.wav"
How reproducible is the bug?
Constantly when using the above command
Screenshots if relevant
These "clicks" are visible on the spectrogram:
There are none with wasapisrc
:
Solutions you have tried
If you use the wasapisrc
plugin, the recorded sound is clear, without clicks:
gst-launch-1.0 -v wasapisrc ! wavenc ! filesink location="record.wav"
Related non-duplicate issues
...
Additional Information
I actually encountered this problem when making calls through Dino port for Windows, which by default uses directsoundsrc