Comments (7)
Off-topic: I swear I didn't laugh out loud when I clicked on the GIF #cavatwitcheffect
from cava.
no laughing matter, or is it...
I was able to reproduce the problem. It seems that when you pause MPD it stops sending data to the fifo. So instead of getting all zeroes as one would get from alsa, it just waits on 'fread' and whatever was in the shared buffer when paused remains there. I'm trying to write m way around it by using a non-blocking file descriptor, but it's a mess. I think using select() and a timeout is the solution. I'll have to look more into it later.
from cava.
I was able to fix it by using a non-blocking read(), turns out it wasn't a mess at all. Closing issue.
from cava.
@karlstav Friendly tip: You can also close issues through a commit message, which creates a link to the related commit for future reference.
from cava.
@anko cool, I'm still learning
from cava.
Were 99cb8f4 and f0b9d40 having some hiccups? Or result of some changes in astyle
configuration?
Either way, this would make harder to spot what exactly changed for this issue.
If I git diff 4f08afd f0b9d40
that looks more normal. When this kind of things happen and you can try to use git commit --amend
if you haven't pushed, even you do, I would say it's still save to do a --force
push if you correct in a few minutes.
Frankly, if that's really the configuration, I would suggest to ditch astyle
, I really don't believe using that would help for languages like C, our eyes, hands, and brain are the best tool.
git diff
and check every line before commit.
from cava.
Ok so here is what happened:
After fixing the issue i decided to style it again with astyle. Then I realized my horrible mistake, I had styled it according to an older setting (with whitespaces as indent). So i restyled it and committed again :/ .
So thanks to @livibetter I have no learned three thing:
- --amend lets you "regret" mistakes you made
- ALWAYS run
git diff
before you commit - astyle is a "lazy man's tool" and it's much better to have control of your code "by hand".
from cava.
Related Issues (20)
- Another raw output method that writes bars to output using "▁▂▃▄▅▆▇█ " HOT 6
- [WORKAROUND FOUND] Cava and Cava-GIT from the AUR is not visualizing audio. HOT 2
- [URGENT] please update input/sndio.c HOT 2
- Config ignored on Windows 11 HOT 2
- Is it possible to remove the bar heads from idle Cava? HOT 2
- Release the app on Fdroid HOT 4
- Two squares (not umlaut) on top of each bar if starting over ssh HOT 4
- Very high sensivity HOT 2
- Segmentation fault HOT 2
- Keyboard controls are ignored when pausing PipeWire input HOT 6
- Erratic when waveform activated HOT 2
- Cava ignores the config file HOT 2
- Fails to build with iniparser 4.2 HOT 3
- Cava terminated with SIGSEGV at startup HOT 28
- missing <stdlib.h> in config.c
- Is it possible to integrate into a console-based music player? HOT 1
- Error: failure in opening stream (Invalid number of channels) HOT 1
- error while loading shared libraries: libiniparser.so HOT 11
- Linking fails on 10.6: `Undefined symbols: _glGenVertexArrays, _glReleaseShaderCompiler, _glBindVertexArray` HOT 5
- Cava causing crashes of pipewire HOT 1
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 cava.