-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
a little chore, missing features and encoding #14
base: main
Are you sure you want to change the base?
Conversation
Finally some usable api documentation taken off this api documentation.. the following is just some dumb pseudocode I just came up with but it's not hard to translate, thus I'm going to write a translator that can easily be extended with new api calls in future. in essence,
|
Signed-off-by: Jan-Stefan Janetzky <[email protected]>
Signed-off-by: Jan-Stefan Janetzky <[email protected]>
this change has no effect except for being less clutter Signed-off-by: Jan-Stefan Janetzky <[email protected]>
Signed-off-by: Jan-Stefan Janetzky <[email protected]>
Signed-off-by: Jan-Stefan Janetzky <[email protected]>
Signed-off-by: Jan-Stefan Janetzky <[email protected]>
Added a new case in the switch statement to handle -3 return value. This will throw an "out of range" exception when the parameter is outside the acceptable limits. Signed-off-by: Jan-Stefan Janetzky <[email protected]>
The codebase has been refactored to use ES6 module syntax instead of CommonJS. This includes renaming files with .js extension to .mjs, replacing require statements with import, and changing module.exports to export default or named exports. Deprecated warnings have been added for certain imports. In addition, the package.json file has been updated: - The main entry point is now index.mjs - Added a types field pointing to index.d.ts - Set type as "module" to swap to es6 modules - Updated version number from 0.5.0 to 0.6.0 - Added contributors list - Included a link for reporting bugs - Added "api" keyword
well.. I guess I've solved to parse every api call now..
turns into: {
"title": "Bus Parameters",
"comment": "Bus index is zero based. 2 buses on Voicemeeter, 5 on Banana, 8 on Potato.",
"description": "Fade to Target Gain",
"command": "Bus[%].FadeTo",
"parts": [
"Bus",
"FadeTo"
],
"hasMultistring": true,
"args": [
{
"type": "bus",
"rule": "0..8",
"description": "bus id"
},
{
"type": "multistring",
"rule": "(%, %)"
},
{
"type": "gain",
"rule": "-60.0..12.0",
"description": "gain value (dB)"
},
{
"type": "rule",
"rule": "0.0..120000.0",
"description": "time in ms"
}
],
"write": true,
"read": true
} |
Hello there.
I've tried to split my changes into separate commits but sadly git put individual changes into the same hunks so.. it is somewhat readable if you go through each commit one by one for review.
I'll extend the readme later, to document the new features a little.
in essence, this module is now auto-reconnecting to voicemeeter in case the api just got terminated for a moment.
apart from that, it will also expose a new api that can be used like this:
and so on.
I've also replaced ansi with utf16 both ways so audio devices like in non-american languages like "Kopfhörer" are properly encoded now.
especially this commit also changes the encoding