cpyarger / obs-midi

Use MIDI devices to trigger events in OBS and vice versa
https://obs-midi.org
GNU General Public License v2.0
167 stars 20 forks source link

Midi Devices cannot be disabled #131

Open HarlekinSimplex opened 3 years ago

HarlekinSimplex commented 3 years ago

Enabling and disabling of MIDI Devices does not work properly.

Platform

Operating system and version: Win 10 x64 OBS Studio version: 26.1.1 x64

Expected Behavior

It should be possible to disable MIDI Ports again.

Current Behavior

Once a MIDI device is Enabled at the 'Device* Tab it can not be disabled again. As soon as you start OBS all those enabled MIDI Ports are opened an cannot be used by another application. I use the Springbeats virtual Ports tp connect Open Stage Control with OBS and Voice Meeter.

Steps to Reproduce

  1. Click on a MIDI Device Enable Checkbox to enable it
  2. Close OBS and reopen it
  3. Click on a MIDI Device Enable Checkbox to disable it
  4. Close OBS and reopen it
  5. Look at the Device Enable Check Box: Its sill active
  6. Try to use MidiView or like tool to connect to the Device (Virtual Device)
  7. All Devices in the Device List are showing the same behavior (Virtual or not)

Additional information

VoiceMeeter -> Midi View does work VoiceMeeter -> Open Stage Control does work VoiceMeeter -> OBS MIDI does work Open Stage Control (Midi) -> Midi View does work Open Stage Control (Midi) -> Voice Meeter does work but: Open Stage Control (Midi) -> OBS MIDI does NOT work (at least until now)

To get the MIDI Ports working again I need to quit OBS VoiceMeeter and Open Stage Control. After Restarting Open Stage Control and Voice Meeter, both do work together as usual.

Uninstalling OBS MIDI from OBS does remove the MIDI Issues I have entirely.

djgetti commented 3 years ago

@HarlekinSimplex I found a quick workaround that does work. Navigate to %appdata%, obs-studio\plugin_config\obs-midi

Inside this folder you can open the "obs-midi_Untitled_saved1.json" (your filename could be different)

you can edit that with notepad or notepad++, under each midi device change "enabled" to "false" for any midi device you want disabled.

Save and reload OBS and the device will be disabled again.

cpyarger commented 2 years ago

I will take note of this. The value should be changed when you disable the device in the gui. but if it's not I will see what I can do to fix it.