Setup the desired sampleRate #33
No reviewers
Labels
No labels
Bug
Duplicate
Enhancement
Help Wanted
Invalid
Question
Wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-obsproject/libdshowcapture!33
Loading…
Reference in a new issue
No description provided.
Delete branch "wkpark/samplerate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
try to set the desired sampling rate.
Description
this fix try to set the desired sampling rate by modifying
nSamplesPerSecMotivation and Context
I'm not sure but when using a video capture card (
MJPEGonly ) with a USB audio support (like as ATEM mini)with Custom Audio setting. OBS does not set/report the correct sampling rate for the selected audio device as follows.
and the result of this situation (I guess)
How Has This Been Tested?
48 kHzTypes of changes
This quick hack try to set the desired sampling rate by modifying
nSamplesPerSecSee also
Checklist:
What happens if the device doesn't support the requested sample rate?
as you know,
for this case,
SetFormat()will be failed and we can't use the win-dshow plugin(anyway, obs have another audio driver option.)
https://github.com/obsproject/libdshowcapture/pull/33/commits/f3381a7f63ee50dad9ffdd4979deb11bf3a523e6#diff-55b8bf12e74f93879b4bc14277476b5aa7dcee1f47320a76f812a3754f72c85eL472-L480
(line L472-L480)
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.