Sign in to follow this  
Followers 0
goodbyte

LED contest opportunity

1 post in this topic

Hey, I've made a simple DLL that I won't use, It has only one function that returns the current sound output peak value. With a little creativity you could achieve something like this demo.

DLL
https://drive.google.com/file/d/0BwRNu0fsS7PTbEYxMXR6eEV6bGc/view?usp=sharing

How to use it:
Manifest:

"data": {
  "extra-objects": {
    "Plugin": {
      "file": "Files/AudioMeter.dll",
      "class": "goodbyte.AudioMeter"
    }
  }
}

Overwolf:

//GET THE PLUGIN
overwolf.extensions.current.getExtraObject('Plugin', function(result) {
	if (result.status === 'success') window.Plugin = result.object;
});

//THEN
window.Plugin.getMasterPeakValue(function(result) {
    if (result.status === 'success') console.log(result.value); //It returns a value between 0 and 1 depending of the current sound output volume, eg: 0.143235322
});

 

Edited by goodbyte

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0