Coder Social home page Coder Social logo

Loud click on startup about bela HOT 4 CLOSED

belaplatform avatar belaplatform commented on August 16, 2024 1
Loud click on startup

from bela.

Comments (4)

TheTechnobear avatar TheTechnobear commented on August 16, 2024

yeah, this makes you jump if you have bela connected to a mixer, which then goes to your monitors :)
(there seems to be a much softer one when the patch stops too, you can hear it best, if you use a silent patch like 'scope')

from bela.

giuliomoro avatar giuliomoro commented on August 16, 2024
diff --git a/core/I2c_Codec.cpp b/core/I2c_Codec.cpp
index 70197ed..f22b9a2 100644
--- a/core/I2c_Codec.cpp
+++ b/core/I2c_Codec.cpp
@@ -117,6 +117,7 @@ int I2c_Codec::startAudio(int dual_rate)
        if(writeRegister(0x66, 0x02))   // Clock generation control register: use MCLK, PLL N = 2
                return 1;

+       usleep(10000);
        if(writeRegister(0x33, 0x0D))   // HPLOUT output level control: output level = 0dB, not muted, powered up
                return 1;
        if(writeRegister(0x41, 0x0D))   // HPROUT output level control: output level = 0dB, not muted, powered up

This would get rid of MOST of the click at startup. There is still a quieter tick after the usleep, which seems to be the same that you get when a silent patch stops.

from bela.

apmcpherson avatar apmcpherson commented on August 16, 2024

A quiet tick is much better than a loud pop! I'm not sure there's much that can be done about that either -- e.g. Mac laptops do the same thing when audio is turned on or off. The only alternative might be to leave the headphone amp powered up all the time, regardless of whether a program is running, but that might have other drawbacks.

from bela.

giuliomoro avatar giuliomoro commented on August 16, 2024

I tried to set the headphone level to 0 and mute the DAC before powering up the HPamp, but it makes no difference: that small click is still there.

If someone wants to get rid of this, then they probably also want to use the line output instead of the headphone output.
Not sure what it sounds like from the line output?

from bela.

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.