Skip to content

Commit

Permalink
Fix performance hit, clicking output with Linux PulseAudio (#180)
Browse files Browse the repository at this point in the history
* Trying to fix PulseAudio awfulness - put Circle buffer back

* Writes to circle buffer.   Need to separate stream initialization now.

* Getting better!

Don't wait for operations in Start/Stop output function though - chain callbacks together

* Playback is smooth!  Delay in the UI though but maybe that's OK

* Source cleanup, remove useless mOutputIsRunning variable

* Include time.h to fix broken Linux build

* clean lint trap

* Weird that pthread is missing here

* Clean up logging, fix header file

* Drain, then cork PA in StopOutput.

* Apply clang-format

* GLARING error in StreamDrainedCB header

Don't write more than consumed from CircleBuffer
... cleanup some more junk

* Safe PA operation unreffing

* More cleanup and comments.

Works much better than before.  Probably not bug-free though.

* remove lint from belly button

* clear defs when DEBUG_SOUND is off

eliminate warnings and errorText variable
  • Loading branch information
chuma authored Oct 21, 2022
1 parent 9b0d16c commit 80727f6
Show file tree
Hide file tree
Showing 2 changed files with 216 additions and 201 deletions.
Loading

0 comments on commit 80727f6

Please sign in to comment.