Code Monkey home page Code Monkey logo

Comments (5)

nicola02nb avatar nicola02nb commented on August 19, 2024 1

I created a pull request for some missing features of the Steelseries Artic Nova 7:

  • microphone mute led brightness
  • microphone volume
  • volume limiter

from headsetcontrol.

Sapd avatar Sapd commented on August 19, 2024

Looks like there is a function in the device file but I don't see a way to execute it.

Yeah the guy implementing it found it probably during his WireShark Session but didn't implement it as headsetcontrol currently has no command for that.

You can feel free to add one (not really complicated, you can just copy the code for send_microphone_volume):

  • Add here a new funtion, similar to send_microphone_volume:
    int (*send_microphone_volume)(hid_device* hid_device, uint8_t num);
  • In the Arctis 7 file, reference the function you saw here:
    device_arctis.send_sidetone = &arctis_7_send_sidetone;
  • Also in device.h add a capbability just calling it CAP_VOLUME_LIMITER :
    CAP_MICROPHONE_VOLUME,
  • Now you just need to implement the parameter in main.c:
    • Add an option here { "volume-limiter", required_argument, NULL, 0 },
      { "microphone-volume", required_argument, NULL, 0 },
    • Handle that option here, simply copy the microphone volume code and rename things (and create a variable on top):

      HeadsetControl/src/main.c

      Lines 706 to 712 in f64ac48

      } else if (strcmp(opts[option_index].name, "microphone-volume") == 0) {
      microphone_volume = strtol(optarg, &endptr, 10);
      if (*endptr != '\0' || endptr == optarg || microphone_volume < 0 || microphone_volume > 128) {
      fprintf(stderr, "Usage: %s --microphone-volume 0-128\n", argv[0]);
      return 1;
      }
    • Also here:
      { CAP_MICROPHONE_VOLUME, CAPABILITYTYPE_ACTION, &microphone_volume, microphone_volume != -1, {} },
    • Then call your new function in handle feature:
      case CAP_MICROPHONE_VOLUME:

Feel free if you struggle somewhere

from headsetcontrol.

nicola02nb avatar nicola02nb commented on August 19, 2024

@duckman all the feature for your headphones will be included with my pull request

from headsetcontrol.

duckman avatar duckman commented on August 19, 2024

You sir are a gentleman and a scholar. I'll try it out tonight.

from headsetcontrol.

nicola02nb avatar nicola02nb commented on August 19, 2024

If you want to checck out also my GUI you're welcome.

from headsetcontrol.

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.