Latest WACUP public preview for x86 & x64 is build #21136 (March 9th 2025) (x86 & x64 changelogs)
Latest restricted WACUP beta release is build #21136 (March 9th 2025) (x86 & x64 changelogs)


NOTE: Beta testers are added in a limited & subjective manner as I can only support so many people as part of the beta test program to keep it useful for my needs.

Unless I think you're going to be helpful, not all requests will be accepted but might still be later on. Remember that beta testing is to help me & the limitations currently works for my needs for this project.

Author Topic: Multiple wacup Instances  (Read 6270 times)

jon00

  • Full Member
  • ***
  • Posts: 12
    • View Profile
Multiple wacup Instances
« on: May 11, 2020, 07:53:16 PM »
Hi Darren,

What is the best way to run more than one instance of wacup on a single PC? (I see the warning when ticking allow multiple instances). The requirement is to have two copies controlled remotely (by getting their Hwnd) and being able to set the DirectSound output to different sound cards. These settings would need to be remembered for each instance.

dro

  • Admin / WACUP Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 4885
    • View Profile
    • WACUP (Winamp Community Update Project)
Re: Multiple wacup Instances
« Reply #1 on: May 12, 2020, 04:42:06 PM »
It depends if it needs to be done as 2 installs of it 1 install & dual configuration folders will be ok.

Making 2 separate installs is sometimes the simplest way but you've then got the fun of how to locate that instance as well as if one instance needs updated plug-ins that the other is also updated.

The other way is to make 1 install & use the /INIDIR option (& for safety the /CONFIG option to avoid possible confusion) for one or both of the instances to be run. With the new (via /NEW) instance handling under WACUP I do /INIDIR="folder" /CONFIG="folder\winamp.ini" with the second instance that WACUP creates (along with the duplication of the settings folder if that's needed).

Also there's the potential for actions for one instance going to the wrong one which the /FIND command-line can help to work around though the best option is to have one of the instances use a different classname so it's easier to distinguish between them. The default as you know is Winamp v1.x but by editing the paths.ini file (directly or via the /PATHSEDIT action against the respective configuration - it can be made to browse to a different folder via the editor) then you can change it something else. Like I use WACUP 0.9x for my development install & my playback install then uses the default.

Am sure there's more questions but that's the obvious things from the top of my head.

-dro

jon00

  • Full Member
  • ***
  • Posts: 12
    • View Profile
Re: Multiple wacup Instances
« Reply #2 on: May 13, 2020, 05:34:24 PM »
Thanks...that makes complete sense. What is the risk in using multi-instance in Wacup which I already have setup for Winamp installations?

dro

  • Admin / WACUP Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 4885
    • View Profile
    • WACUP (Winamp Community Update Project)
Re: Multiple wacup Instances
« Reply #3 on: May 13, 2020, 06:48:41 PM »
The only issue is if you use the same configuration for each instance then if there's settings &/or library / history related changes they can get messed up as there can be a fight as to which one gets to save it's settings last. Otherwise if you've got things running with the duplicated config folders then it's just the aspect of correctly knowing which instance to interact with.

-dro

jon00

  • Full Member
  • ***
  • Posts: 12
    • View Profile
Re: Multiple wacup Instances
« Reply #4 on: May 14, 2020, 12:54:41 PM »
Thanks.

I have one further issue. The Main Playlist directory is shown as  %APPDATA%\WACUP under diagnostics.

If I add anything to the /M3UDIR= entry it changes to  %SystemDrive%\WACUP\<my new directory>

I assume this is a bug?

dro

  • Admin / WACUP Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 4885
    • View Profile
    • WACUP (Winamp Community Update Project)
Re: Multiple wacup Instances
« Reply #5 on: May 14, 2020, 01:23:30 PM »
What's the command line you entered for that?  As without checking right now it might be wacup vs winamp command line conflict as there's a number of aspects like it that I've not taken over.

It's also possible to set that in the paths.ini.

-dro

jon00

  • Full Member
  • ***
  • Posts: 12
    • View Profile
Re: Multiple wacup Instances
« Reply #6 on: May 14, 2020, 02:27:25 PM »
If you use /M3UDIR ="2" it show the directory as %SystemDrive%\WACUP\2

If you use /M3UDIR = "%AppData%\WACUP\2", it shows the directory as %SystemDrive%\WACUP\%AppData%\WACUP\2


dro

  • Admin / WACUP Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 4885
    • View Profile
    • WACUP (Winamp Community Update Project)
Re: Multiple wacup Instances
« Reply #7 on: May 14, 2020, 03:06:03 PM »
Ok, will look into getting that fixed.

-dro

dro

  • Admin / WACUP Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 4885
    • View Profile
    • WACUP (Winamp Community Update Project)
Re: Multiple wacup Instances
« Reply #8 on: May 15, 2020, 04:55:14 AM »
It should hopefully work in a more expected manner with the next build now I'm not allowing Winamp's code to be used.

So passing relative (to the existing settings folder) or fully qualified paths are now working from my tests including those using environment variables (%appdata%). If anything passed cannot be made into a valid file / folder path depending on the action used then it'll use the default / expected paths based on the stored configuration.

-dro

jon00

  • Full Member
  • ***
  • Posts: 12
    • View Profile
Re: Multiple wacup Instances
« Reply #9 on: May 15, 2020, 12:49:15 PM »
Many thanks.

I've run into more issues. It would seem that wacup does not honor the /CLASS=XXXXX on some commands. For example, two classes winamp2 & winamp3 running:

/CLASS="winamp3" /ADD "C:\Playlist\3\Playlistall.m3u"
/CLASS="winamp3" /PLAY
 
The playlist is sent to the winamp2 class but tries to play the correct (winamp3) class?

This works fine on Winamp 5.666 BTW
« Last Edit: May 15, 2020, 12:49:58 PM by jon00 »

dro

  • Admin / WACUP Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 4885
    • View Profile
    • WACUP (Winamp Community Update Project)
Re: Multiple wacup Instances
« Reply #10 on: May 15, 2020, 02:12:47 PM »
This one seems to be down to me not having replaced everything with the command-line / multi-instance handling.

Setting the class in the paths.ini is probably the more reliable option but I suppose you're just wanting to do it all dynamically as needed.

-dro

jon00

  • Full Member
  • ***
  • Posts: 12
    • View Profile
Re: Multiple wacup Instances
« Reply #11 on: May 15, 2020, 02:27:04 PM »
This one seems to be down to me not having replaced everything with the command-line / multi-instance handling.

Setting the class in the paths.ini is probably the more reliable option but I suppose you're just wanting to do it all dynamically as needed.

-dro

Indeed....and the fact I already have this working fine with Winamp.

dro

  • Admin / WACUP Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 4885
    • View Profile
    • WACUP (Winamp Community Update Project)
Re: Multiple wacup Instances
« Reply #12 on: May 15, 2020, 02:54:32 PM »
The fun of trying to change the wheels & engine as it's being used :)

I'll need to dig into this but I'm not going to hold off a new release for it.

-dro