GithubHelp home page GithubHelp logo

Comments (3)

ThePBone avatar ThePBone commented on August 27, 2024 1

Yes, I can detect when an application attaches and detaches from the audio server, so I know when the stream is paused.

I did some tests, and this issue only happens when no applications are attached.
So Pipewire pauses the entire audio pipeline instead of filling the audio buffers with silence.

from jdsp4linux.

acarasimon96 avatar acarasimon96 commented on August 27, 2024

On my setup, I only hear a sharp pop when a new sound plays after several seconds of total silence. In extreme cases, I would sometimes hear either or both channels being cut out for several milliseconds in the exact same scenario. This occurs both in the PulseAudio and Pipewire flavors, the latter I'm using now as I gave up using PA due to unsolvable overruns with DSP apps.

I think this is more of a timing issue because the DSP pipeline has its own buffer (I may be wrong as I have not studied the app's source code), so there would always be a short delay as the audio is being passed through. Every time the pipeline becomes idle when no sound is playing, it would get paused after a short amount of time. Combine that with the tiny delay caused by the buffer and you get a tiny bit of the previously played sound immediately after the pipeline is unpaused.

On a related note, I've also noticed that some effects such as long reverbs do get paused with the entire pipeline when no audio is playing. As a result, you'd hear the previous sound's reverb once the pipeline gets unpaused. I find that annoying, but that's a topic for another issue.

from jdsp4linux.

james34602 avatar james34602 commented on August 27, 2024

I will take a look on that.
Reverb does has multiple feedback and delay lines

Cleaning up the filter state of reverb will do the job, but in general, we need to know when audio get paused.

@ThePBone Are there ways to obtain stream pause/resume, I mean, of course, I could detect signal volume and a counter to check for silence, but I think stream pausing isn't a silent, but a event?

from jdsp4linux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.