Git Product home page Git Product logo

Comments (4)

mgeier avatar mgeier commented on July 28, 2024

In most cases I have seen it was indeed limited to +-1, but I heard once from a MacBook user that higher amplitudes were possible without distortion.

I don't know any hard facts about that, but a wild guess would be that there are some combinations of OS/driver/hardware that allow a certain "headroom" (in the case of +-2, this would be 6dB).

What OS/driver/hardware are you using?
Did you try at which amplitude the signal is actually clipped?

The sounddevice module just passes the data on to the PortAudio library, so you might find a proper answer there ...

from python-sounddevice.

mgeier avatar mgeier commented on July 28, 2024

@maxnoe Did this answer your question? Do you have any new observations to share?

from python-sounddevice.

maxnoe avatar maxnoe commented on July 28, 2024

The explanation seems to fit, but I dd not do any deeper going studies.

from python-sounddevice.

mgeier avatar mgeier commented on July 28, 2024

@maxnoe Probably a silly question, but did you have the output volume at the maximum in the system preferences?

It seems that on Mac OS X you can have absolute values bigger than 1.0 if your system volume is lowered. However, I don't know what happens if the system volume is at the maximum.

I also tried this with ALSA/Linux, and there the signal starts clipping immediately outside of +-1.0, even if the ALSA mixer volume is way down.

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.