jarrettgilliam / AutoGame

Automatically start your favorite game launcher at just the right moment.
MIT License
34 stars 2 forks source link

The Parsec connected condition fails when switching audio output devices between starting Parsec and AutoGame #10

Closed jarrettgilliam closed 2 years ago

jarrettgilliam commented 2 years ago

Reproduction Steps

  1. Add these options to your parsec config file:
    server_resolution_x=-1
    server_resolution_y=-1
    server_admin_mute=0
  2. Close AutoGame and Parsec
  3. Select an audio output device in Windows
  4. Start AutoGame
  5. Select a different audio output device
  6. Start Parsec
  7. Connect over Parsec
  8. The game launcher isn't opened

Expected:

The launcher is opened regardless of which audio device is selected when starting Parsec and AutoGame.

Actual:

The launcher isn't opened depending of which audio device is selected when starting Parsec and AutoGame.

jarrettgilliam commented 2 years ago

A real torture test:

  1. Add these options to your parsec config file:
    server_resolution_x=-1
    server_resolution_y=-1
    server_admin_mute=0
  2. Close Parsec and open AutoGame
  3. Connect over RDP
  4. Start Parsec
  5. Disconnect from RDP
  6. Connect over Parsec
  7. The game launcher isn't opened
jarrettgilliam commented 2 years ago

This is mostly resolved with commit 6e7c3631e5e844602fe1a6bde4f8f838bf542486, but not 100%. I no longer think it's possible to always detect Parsec connections by listening for audio events alone.

jarrettgilliam commented 2 years ago

Fixed in v2.0.0