Comments (4)
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.
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.
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.
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)
- dropout detector may not be foolproof
- IDE: renaming a file in a subfolder fails HOT 1
- Add link to this repository binary download to update dialog
- Give user feedback when libraries need to compile for first time HOT 1
- Bad script name in docs
- Website broken link HOT 1
- IDE: if file is loaded while dialog is active, focus goes to editor instead
- IDE: missing space in dialog HOT 5
- IDE: show detected board type in "About Bela"
- Multiplexer capelet - core code not driving channel selects HOT 7
- IDE: if file in project is a symlink, saving to it removes symlink and replaces it with new file
- IDE: renaming a file that is opened in another IDE window creates a new file HOT 1
- IDE: after save-as the old project remains open, whereas it should open the new one. HOT 1
- analog input 88200 Hz (88.2 kHz, 2 channels) broken
- Unable to access Bela IDE on Linux HOT 12
- Scope properties show system decimal divider
- I2c class is leaking file descriptor in the destructor
- Gui: on the frontend, the control callback does not get the context it set when it was registered
- upon shutdown, a AuxTaskRT may hang
- fft.fda() might return NaN HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bela.