Comments (9)
It would be also cool a section equalizer_preset
that returns the presets of the headpones:
euqalizer_preset[
flat: [0,....0,],
bass: [....],
....
]
from headsetcontrol.
Yeah that is quite easy to do.
However I do not fully understand your preset example. So basically what I see what we can return is something like this:
euqalizer_preset[
flat,
bass,
smiley,
focus
]
Where are the numbers in your example come from? (can you also link me the device file when you reference a specific one)
from headsetcontrol.
Yeah, sorrry I missed some information...
I was thinking something like this:
"euqalizer_preset":[
"flat":[0,0,0,0,0,0,0],
"bass":[0,0,0,0,0,0,0],
"smiley":[0,0,0,0,0,0,0],
"focus":[0,0,0,0,0,0,0]
]
I'm writing a GUI for HeadsetControl, and having those informations would be useful.
Those values should come from the specific device...
Take as example the Steelseries Artic Nova 7:
from headsetcontrol.
Ah yes now I get it, I saw the code before didn't realize that the command actually simply contains equalizer-payload.
Probably needs some code cleanup with more data-driven approach (defining the equalizer as struct and also using it to directly pass it to hid_write), but otherwise easily doable.
I think it can be implemented as a device function, which simply returns that information somewhere here - similar to other request functions (but that it instead returns the data from variables instead of from HID):
Line 235 in f64ac48
Can do so in the near future
from headsetcontrol.
Yeah, it could be an idea... it seems also quite simply to implement...
Tell me if you need anithing else
from headsetcontrol.
@Sapd I done a commit on my fork where I added the feature for json output... It needs some refactor of some comments on device.h
added function firms, and it also needs to get implemented all missing functions for compatible devices... can you give a look at it?
from headsetcontrol.
Some suggestions:
- Maybe it would be easier to be a device information in
device.h
in the device struct instead of a "feature"- As when you request json output without any options you will get all information anyway. And this information is static in any case
EqualizerInfo
would have to be a pointer then inside the device struct, which is simplyNULL
when there is no EQ info. When it is null no output is needed- You would also then do not need the functions like
request_equalizer
from headsetcontrol.
Did a rollback and a new commit following your idea.
from headsetcontrol.
Looks fine to me on first looks, in any case you can create a PR from your fork
from headsetcontrol.
Related Issues (20)
- Possibility to add shortcuts with the G733 battery button
- Help with setting up Corsair HS55 Wireless HOT 2
- SteelSeries Arctis 9 not displaying battery when charging HOT 6
- Add support for Logitech H390 HOT 1
- error: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result] HOT 2
- Add support for Logitech G435 HOT 9
- Not showing correct battery status HOT 2
- Can not execute any command without sudo privileges HOT 2
- Incorrect ChatMix help message HOT 1
- Integrate with D-Bus / Upower HOT 1
- Error during build HOT 1
- HyperX Cloud Core Wireless Support HOT 4
- Support for HyperX Cloud III (with wire) HOT 12
- Arctis 7 Pro - Battery Charge Level alway at 56%
- version 3.0.0 build failure in src/output.c with CMake HOT 3
- CORSAIR HS80 RGB Wireless Gaming Support HOT 2
- Add Volume Limiter Support HOT 5
- URB Interupt / JBL Q810 HOT 1
- SteelSeries Arctis Nova 5 HOT 3
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 headsetcontrol.