Skip to content

Conversation

@ewels
Copy link
Member

@ewels ewels commented Nov 26, 2025

Optionally disable sound for folks on systems where there is no midi controller. Best we can do without upstream fixes.

Add -nomusic flag to MochaDoom to prevent crash when running on
systems without MIDI devices. The error occurred in
DavidMusicModule.sendSysexMessage() when VolumeScalingReceiver
returns null due to unavailable MIDI hardware.

Fixes #3
Instead of hardcoding -nomusic flag, add a params.nomusic option
that users can enable when running on systems without MIDI audio
hardware.

Also add troubleshooting section to README documenting the
NullPointerException error and the workaround.

Fixes #3
@ewels ewels linked an issue Nov 26, 2025 that may be closed by this pull request
@ewels
Copy link
Member Author

ewels commented Nov 27, 2025

Tested it - it does indeed turn off the music, but there is still sound effects.

@nvnieuwk @jfy133 does this fix the issue for you?

Testing command:

nextflow run doom -r claude/investigate-issue-3-01VTdDE4CVdvHKGLQ47LZECd --nomusic

@jfy133
Copy link

jfy133 commented Nov 27, 2025

Yeah the game loads now but somehow the sound comes through my laptop speakers and ignores any form of volume control or muting 🙃

@nvnieuwk
Copy link

It doesn't open a pop up with the game for me :/

@nvnieuwk
Copy link

$ nextflow run doom -r main -latest --nomusic

 N E X T F L O W   ~  version 25.10.0

Pulling nextflow-io/doom ...
 Already-up-to-date
Launching `https://github.com/nextflow-io/doom` [thirsty_goodall] DSL2 - revision: c45e0a1213 [main]

executor >  local (3)
[40/a9966f] process > printLogo  [100%] 1 of 1 ✔
[a6/05d0ac] process > printQuote [100%] 1 of 1 ✔
[18/cc3c0a] process > playDoom   [  0%] 0 of 1
[-        ] process > insultUser -

▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒████████████████████▒▒██████████████████▒▒██████████████████▒▒██████▒▒▒▒▒▒████████▒▒
▒▒▒▒██████████████████▒▒██████████████████▒▒██████████████████▒▒██████▒▒▒▒▒▒██████▒▒▒▒
  ▒▒██████████████████▒▒██████████████████▒▒██████████████████▒▒████████▒▒████████▒▒
  ▒▒██████▒▒▒▒▒▒██████▒▒██████▒▒▒▒▒▒██████▒▒██████▒▒▒▒▒▒██████▒▒██████████████████▒▒
  ▒▒██████▒▒▒▒▒▒██████▒▒██████▒▒▒▒▒▒██████▒▒██████▒▒▒▒▒▒██████▒▒██████████████████▒▒
  ▒▒██████▒▒▒▒▒▒██████▒▒██████▒▒▒▒▒▒██████▒▒██████▒▒▒▒▒▒██████▒▒██████████████████▒▒
  ▒▒██████▒▒▒▒▒▒██████▒▒██████▒▒▒▒▒▒██████▒▒██████▒▒▒▒▒▒██████▒▒██████████████████▒▒
  ▒▒██████▒▒▒▒▒▒██████▒▒██████▒▒▒▒▒▒██████▒▒██████▒▒▒▒▒▒██████▒▒██████████████████▒▒
  ▒▒██████▒▒▒▒▒▒██████▒▒██████▒▒▒▒▒▒██████▒▒██████▒▒▒▒▒▒██████▒▒██████████████████▒▒
  ▒▒██████▒▒▒▒▒▒██████▒▒██████▒▒▒▒▒▒██████▒▒██████▒▒▒▒▒▒██████▒▒██████████████████▒▒
  ▒▒██████▒▒▒▒▒▒██████▒▒██████▒▒▒▒▒▒██████▒▒██████▒▒▒▒▒▒██████▒▒██████████████████▒▒
  ▒▒██████▒▒▒▒▒▒██████▒▒██████▒▒▒▒▒▒██████▒▒██████▒▒▒▒▒▒██████▒▒██████████████████▒▒
  ▒▒██████▒▒▒▒▒▒██████▒▒██████▒▒▒▒▒▒██████▒▒██████▒▒▒▒▒▒██████▒▒██████▒▒██▒▒██████▒▒
  ▒▒██████▒▒▒▒████████▒▒████████▒▒▒▒██████▒▒██████▒▒▒▒████████▒▒██████▒▒▒▒▒▒██████▒▒
  ▒▒██████▒▒████████▒▒▒▒▒▒████████████████▒▒████████████████▒▒▒▒▒▒████▒▒  ▒▒██████▒▒
  ▒▒██████████████▒▒▒▒  ▒▒▒▒████████████▒▒▒▒▒▒████████████▒▒▒▒  ▒▒████▒▒  ▒▒██████▒▒
  ▒▒████████████▒▒▒▒      ▒▒▒▒████████▒▒▒▒  ▒▒▒▒████████▒▒▒▒    ▒▒▒▒██▒▒  ▒▒██████▒▒
  ▒▒██████████▒▒▒▒          ▒▒▒▒████▒▒▒▒      ▒▒▒▒████▒▒▒▒        ▒▒▒▒▒▒  ▒▒██████▒▒
  ▒▒████████▒▒▒▒              ▒▒▒▒▒▒▒▒          ▒▒▒▒▒▒▒▒                  ▒▒▒▒████▒▒
  ▒▒██████▒▒▒▒                                                              ▒▒████▒▒
  ▒▒████▒▒▒▒                                                                ▒▒▒▒██▒▒
  ▒▒██▒▒▒▒                                                                    ▒▒██▒▒
  ▒▒▒▒▒▒                                                                      ▒▒▒▒▒▒


        ══════════════════════════════════════════════════════════════════════
          They are rage, brutal, without mercy. But you... you will be worse.
        ══════════════════════════════════════════════════════════════════════


Add params.nosound option that disables all sound (music and effects).
The --nosound flag takes precedence over --nomusic.

Updated README to document both options.
@ewels
Copy link
Member Author

ewels commented Nov 27, 2025

@jfy133 I've added a --nosound to completely disable all sound. Is that better?

@nvnieuwk - That's how the log output is meant to look now, but yeah - a game should still load.. Anything in .nextflow.log or the task's work dir?

@nvnieuwk
Copy link

I used the wrong revision 🤦 All fine!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sound error

5 participants