Skip to content

Conversation

@illuusio
Copy link
Collaborator

@illuusio illuusio commented Oct 4, 2024

Rework stopping and stream closing code as it should prevent artifacts when closing or stopping stream. Correctly handle stream termination from callback

@illuusio illuusio force-pushed the pulseaudio-remove-last-click branch from 7c6247c to d47968e Compare October 4, 2024 06:08
@RossBencina RossBencina added the src-pulseaudio PulseAudio Host API in src/hostapi/pulseaudio label Oct 18, 2024
@philburk philburk added the P3 Priority: Normal label Oct 18, 2024
@illuusio illuusio force-pushed the pulseaudio-remove-last-click branch from d47968e to ba5ec87 Compare October 19, 2024 09:40
@illuusio illuusio added this to the V19.8 milestone Oct 19, 2024
@illuusio illuusio force-pushed the pulseaudio-remove-last-click branch from ba5ec87 to 77d4d46 Compare January 12, 2025 13:52
@illuusio
Copy link
Collaborator Author

This could take a look now that other one is fixed.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Github won't let me add a comment to an unchanged line, but at line 429 call to pa_steam_write, nothing has been copied to bufferData yet. Furthermore, bufferData memory is invalidated by the call (see https://freedesktop.org/software/pulseaudio/doxygen/stream_8h.html#a4fc69dec0cc202fcc174125dc88dada7 ) so subsequent calls to the buffer processor may crash.

I suggest moving the calls to PaUtil_EndBufferProcessing and PaUtil_EndCpuLoadMeasurement prior to the call to pa_stream_write.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hopefully I understood correctly what you meant with this but now it should be like that.

@RossBencina
Copy link
Collaborator

@illuusio we're awaiting your response to latest review.

@illuusio
Copy link
Collaborator Author

illuusio commented Feb 12, 2025

@illuusio we're awaiting your response to latest review.

Sorry been bit busy but now it should be fixed as soon as I got the commits in 🦄

@illuusio
Copy link
Collaborator Author

illuusio commented Feb 14, 2025

Ok this PR seems this one needs bit more work I separated that output thing to PR #1005 . Let's get that first in so I can solve last bits in this. Sorry about bit of wasting of your time..

@illuusio illuusio force-pushed the pulseaudio-remove-last-click branch from 77d4d46 to 26b88ed Compare June 25, 2025 18:15
@illuusio illuusio force-pushed the pulseaudio-remove-last-click branch from 26b88ed to 9eb105f Compare July 7, 2025 07:25
illuusio and others added 12 commits November 26, 2025 15:28
…d for clarity and specificity.

The comments in _PaPulseAudio_ProcessAudio required enhancement;
therefore, the comments have been revised to provide greater specificity
and improved clarity in the English language.
…ated.

The remaining comments in the PulseAudio callback file should be
updated to utilize passive voice and improved English for clarity.
Make more adjustments to pulseaudio cb comments.
As Ringbuffer it does not underrun but it does overrun data.

Co-authored-by: Ross Bencina <rossb@audiomulch.com>
Simplify comment about buffer  size calculation

Co-authored-by: Ross Bencina <rossb@audiomulch.com>
Update unlocking comment wording to more understandable

Co-authored-by: Ross Bencina <rossb@audiomulch.com>
Output copying what in incorrect place now that should be corrected
Rework stopping and stream closing code as it should prevent artifacts
when closing or stopping stream. Correctly handle stream termination
from callback
@illuusio illuusio force-pushed the pulseaudio-remove-last-click branch from 9eb105f to 65a12bd Compare November 26, 2025 13:30
@RossBencina
Copy link
Collaborator

This PR contains a whole bunch of unrelated changes, mostly comment edits. Please reduce this to a minimal change against master that does what it claims to do: "rework stopping code to prevent artifacts."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Priority: Normal src-pulseaudio PulseAudio Host API in src/hostapi/pulseaudio

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants