File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed
Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -8,3 +8,20 @@ nextflow run doom
88
99> [ !NOTE]
1010> All credit for the Java implementation go to this project: https://github.com/gaborbata/vanilla-mocha-doom
11+
12+ ## Troubleshooting
13+
14+ ### Sound error: NullPointerException
15+
16+ If you see an error like:
17+
18+ ```
19+ Cannot invoke "javax.sound.midi.Receiver.send(javax.sound.midi.MidiMessage, long)" because "receiver" is null
20+ ```
21+
22+ This occurs on systems without MIDI audio devices. Run with ` --nomusic ` to disable music only, or ` --nosound ` to disable all audio:
23+
24+ ``` bash
25+ nextflow run doom --nomusic # Disable music only
26+ nextflow run doom --nosound # Disable all sound
27+ ```
Original file line number Diff line number Diff line change 11#! /usr/bin/env nextflow
22
3+ params. nomusic = false
4+ params. nosound = false
5+
36process printLogo {
47 output:
58 stdout
@@ -71,8 +74,9 @@ process playDoom {
7174 val true
7275
7376 script:
77+ def soundFlags = params. nosound ? ' -nosound' : (params. nomusic ? ' -nomusic' : ' ' )
7478 """
75- java -jar $projectDir /lib/mochadoom.jar -iwad $projectDir /doom1.wad
79+ java -jar $projectDir /lib/mochadoom.jar -iwad $projectDir /doom1.wad $s oundFlags
7680 """
7781}
7882
You can’t perform that action at this time.
0 commit comments