Coder Social home page Coder Social logo

Latency 30mSec about python-sounddevice HOT 9 OPEN

RezaYazdi604 avatar RezaYazdi604 commented on July 20, 2024
Latency 30mSec

from python-sounddevice.

Comments (9)

mgeier avatar mgeier commented on July 20, 2024

Which buffer sizes did you try? Did you try powers of 2?

There is a PortAudio test program called pa_minlat, maybe that gives some insights?

Did you try setting blocksize=0 and varying latency?

PortAudio under Unix currently uses a backgroud thread that reads and writes to OSS.

OSS is an audio backend that hasn't really been used for decades. I guess you are using ALSA?

You must also set PA_MIN_LATENCY_MSEC

That's something I have never heard before, and if you search for it in the PortAudio source code, it only appears in the file https://github.com/PortAudio/portaudio/blob/master/src/hostapi/dsound/pa_win_ds.c, which is irrelevant for Linux.

from python-sounddevice.

RezaYazdi604 avatar RezaYazdi604 commented on July 20, 2024

from python-sounddevice.

RezaYazdi604 avatar RezaYazdi604 commented on July 20, 2024

from python-sounddevice.

RezaYazdi604 avatar RezaYazdi604 commented on July 20, 2024

from python-sounddevice.

mgeier avatar mgeier commented on July 20, 2024

if you had a chance to see my feedback

Yeah, I've seen it, it's kinda hard to read. Can you try formatting it a bit nicer?

from python-sounddevice.

RezaYazdi604 avatar RezaYazdi604 commented on July 20, 2024

from python-sounddevice.

mgeier avatar mgeier commented on July 20, 2024

Please let me know if it's good or not.

Still not great.
Maybe you should use the web interface instead of replying by e-mail.

Did you try pa_minlat?

from python-sounddevice.

RezaYazdi604 avatar RezaYazdi604 commented on July 20, 2024

Hi Mathias,

I have not tried the pa_minlat yet. Are you referring to this? --> https://portaudio.com/docs/v19-doxydocs-dev/pa__minlat_8c.html#details

from python-sounddevice.

mgeier avatar mgeier commented on July 20, 2024

yes.

from python-sounddevice.

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.