{"id":16142998,"url":"https://github.com/mattco98/voicemeeter-jna-interface","last_synced_at":"2025-04-22T21:44:57.383Z","repository":{"id":107777735,"uuid":"118283396","full_name":"mattco98/Voicemeeter-JNA-Interface","owner":"mattco98","description":"An interface to control Voicemeeter via Java using JNA","archived":false,"fork":false,"pushed_at":"2018-10-05T21:03:14.000Z","size":17,"stargazers_count":4,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T19:11:11.575Z","etag":null,"topics":["audio-library","java","jna"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mattco98.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-20T21:47:37.000Z","updated_at":"2024-10-16T04:34:49.000Z","dependencies_parsed_at":"2023-07-06T11:30:23.047Z","dependency_job_id":null,"html_url":"https://github.com/mattco98/Voicemeeter-JNA-Interface","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattco98%2FVoicemeeter-JNA-Interface","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattco98%2FVoicemeeter-JNA-Interface/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattco98%2FVoicemeeter-JNA-Interface/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattco98%2FVoicemeeter-JNA-Interface/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattco98","download_url":"https://codeload.github.com/mattco98/Voicemeeter-JNA-Interface/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250330497,"owners_count":21412988,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio-library","java","jna"],"created_at":"2024-10-10T00:08:14.653Z","updated_at":"2025-04-22T21:44:57.363Z","avatar_url":"https://github.com/mattco98.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Voicemeeter Interface for Java using JNA\n\nThis is an interface written with JNA to control Voicemeeter (and Voicemeeter \nBanana) via it's API. The .dll file itself comes pre-installed with Voicemeeter,\nhowever the files I based this interface off of come with the \nVoicemeeterRemoteAPIPack (version 6). The RemoteAPIPack can be downloaded from the \n[Voicemeeter API forum page](https://forum.vb-audio.com/viewtopic.php?f=8\u0026t=346\u0026sid=74a4f83ebfdb023cb2bf544f7f80827d). \n\n#### Examples\n\nI created this in order to automate the changing of certain values under certain \nconditions. Specifically, I wanted to change the strip compression and gain values\nwhen I had a certain program open, and return the values to default when I closed the\nprogram. Here is an example of such a program using this interface:\n\n```java\nimport java.util.Arrays;\n\npublic class ProgramController {\n    private final String programName = \"program.exe\";\n    private final float strip0GainDefault = 0.0f;\n    private final float strip0CompDefault = 0.0f;\n    private final float strip0GainProgramOpen = -6.0f;\n    private final float strip0CompProgramOpen = 4.5f;\n\n    private boolean programOpen = false;\n\n    public static void main(String[] args) {\n        new ProgramController().init();\n    }\n\n    private void init() {\n        Voicemeeter.init(true);\n\n        while (true) {\n            try {\n                Thread.sleep(1000);\n            } catch (InterruptedException e) {\n                e.printStackTrace();\n                System.exit(1);\n            }\n\n            if (Arrays.asList(getOpenPrograms()).contains(programName))\n                switchToProgramOpen();\n            else\n                switchToProgramClosed();\n        }\n    }\n\n    private void switchToProgramOpen() {\n        if (!programOpen) {\n            programOpen = true;\n\n            Voicemeeter.setParameterFloat(\"Strip[0].gain\", strip0GainProgramOpen);\n            Voicemeeter.setParameterFloat(\"Strip[0].comp\", strip0CompProgramOpen);\n        }\n    }\n\n    private void switchToProgramClosed() {\n        if (programOpen) {\n            programOpen = false;\n\n            Voicemeeter.setParameterFloat(\"Strip[0].gain\", strip0GainDefault);\n            Voicemeeter.setParameterFloat(\"Strip[0].comp\", strip0CompDefault);\n        }\n    }\n\n    private String[] getOpenPrograms() {\n        // Return array of program names. Implementation will differ between\n        // different operating systems.\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattco98%2Fvoicemeeter-jna-interface","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattco98%2Fvoicemeeter-jna-interface","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattco98%2Fvoicemeeter-jna-interface/lists"}