Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Windows 11 Audio Lag #983

Merged
merged 17 commits into from
Dec 13, 2024
Merged

Fix for Windows 11 Audio Lag #983

merged 17 commits into from
Dec 13, 2024

Conversation

jonoomph
Copy link
Member

@jonoomph jonoomph commented Dec 13, 2024

Setting default audio buffer size on Audio Device Manager to 512, to resolve issue on Windows 11 (and some users Windows 10). Newer versions of Windows seem to request 2500 ish audio samples per callback, instead of the 512 requested by Linux. This increase in buffer size causes libopenshot to decode many more frames than normal, causing a 1 to 2 second lag before hearing any audio playback on the OS.

This is also building against our new version of libopenshot-audio, which as been upgraded to JUCE 7.0.10, and now uses C++ standard 17, and targets Mac OS 10.12 (changed from 10.9).

@jonoomph
Copy link
Member Author

Copy link

codecov bot commented Dec 13, 2024

Codecov Report

Attention: Patch coverage is 43.24324% with 21 lines in your changes missing coverage. Please review.

Project coverage is 54.80%. Comparing base (09ca2ce) to head (db73d22).
Report is 18 commits behind head on develop.

Files with missing lines Patch % Lines
src/Qt/AudioPlaybackThread.cpp 31.81% 15 Missing ⚠️
src/Qt/PlayerPrivate.cpp 0.00% 4 Missing ⚠️
src/effects/ObjectDetection.cpp 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #983      +/-   ##
===========================================
- Coverage    54.84%   54.80%   -0.04%     
===========================================
  Files          182      182              
  Lines        16638    16656      +18     
===========================================
+ Hits          9125     9129       +4     
- Misses        7513     7527      +14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jonoomph
Copy link
Member Author

This PR requires changes from libopenshot-audio to build correctly. I'm going to go ahead and merge, as it should be fine. Famous last words, lol.

@jonoomph jonoomph merged commit 1107e9f into develop Dec 13, 2024
8 of 13 checks passed
@jonoomph jonoomph deleted the recovery-menu branch December 13, 2024 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant