shithub: rc

Download patch

ref: ec7d99b4ef67360d1fe83181b888e1b0e4f5019c
parent: 1013496423bee0a0aa0da083059555f41176d37f
author: qwx <qwx@sciops.net>
date: Wed Jul 28 08:36:20 EDT 2021

dmus.mp3 -> dmushi and update

--- a/bin/dmus.mp3
+++ /dev/null
@@ -1,94 +1,0 @@
-#!/bin/rc
-# this overrides music in final doom and any custom music in pwads, since the
-# labels are hardcoded in the source.
-switch($2){
-	case adrian
-		f=$home/m/doom2.adrians.asleep.mp3
-	case ampie
-		f=$home/m/doom2.bye.bye.american.pie.mp3
-	case betwee
-		f=$home/m/doom2.between.levels.mp3
-	case bunny
-		f=$home/m/doom.bunny.mp3
-	case countd count2
-		f=$home/m/doom2.countdown.to.death.mp3
-	case dead dead2
-		f=$home/m/doom2.the.demons.dead.mp3
-	case dm2ttl
-		f=$home/m/doom2.intro.mp3
-	case dm2int
-		f=$home/m/doom2.intermission.mp3
-	case doom doom2
-		f=$home/m/doom2.doom.mp3
-	case ddtblu ddtbl2 ddtbl3
-		f=$home/m/doom2.the.dave.d.taylor.blues.mp3
-	case e1m1
-		f=$home/m/doom.at.dooms.gate.mp3
-	case e1m2
-		f=$home/m/doom.the.imps.song.mp3
-	case e1m3
-		f=$home/m/doom.dark.halls.mp3
-	case e1m4
-		f=$home/m/doom.kitchen.ace.and.taking.names.mp3
-	case e1m5
-		f=$home/m/doom.suspense.mp3
-	case e1m6 e3m6
-		f=$home/m/doom.on.the.hunt.mp3
-	case e1m7 e2m5 e3m5
-		f=$home/m/doom.demons.on.the.prey.mp3
-	case e1m8 e3m4
-		f=$home/m/doom.sign.of.evil.mp3
-	case e1m9 e3m9
-		f=$home/m/doom.hiding.the.secrets.mp3
-	case e2m1
-		f=$home/m/doom.i.sawed.the.demons.mp3
-	case e2m2
-		f=$home/m/doom.the.demons.from.adrians.pen.mp3
-	case e2m3 inter
-		f=$home/m/doom.intermission.from.doom.mp3
-	case e2m4
-		f=$home/m/doom.theyre.going.to.get.you.mp3
-	case e2m6
-		f=$home/m/doom.sinister.mp3
-	case e2m7 e3m7
-		f=$home/m/doom.waltz.of.the.demons.mp3
-	case e2m8
-		f=$home/m/doom.nobody.told.me.about.id.mp3
-	case e2m9 e3m1
-		f=$home/m/doom.untitled.mp3
-	case e3m2
-		f=$home/m/doom.donna.to.the.rescue.mp3
-	case e3m3
-		f=$home/m/doom.deep.into.the.code.mp3
-	case e3m8
-		f=$home/m/doom.facing.the.spider.mp3
-	case evil
-		f=$home/m/doom2.evil.incarnate.mp3
-	case in_cit
-		f=$home/m/doom2.into.sandys.city.mp3
-	case intro
-		f=$home/m/doom.title.mp3
-	case messag messg2
-		f=$home/m/doom2.message.from.the.archvile.mp3
-	case openin
-		f=$home/m/doom2.opening.to.hell.mp3
-	case read_m
-		f=$home/m/doom2.end.mp3
-	case romero romer2
-		f=$home/m/doom2.waiting.for.romero.to.play.mp3
-	case runnin runni2
-		f=$home/m/doom2.running.from.evil.mp3
-	case shawn shawn2 shawn3
-		f=$home/m/doom2.shawns.got.the.shotgun.mp3
-	case stalks stlks2 stlks3
-		f=$home/m/doom2.the.healer.stalks.mp3
-	case tense
-		f=$home/m/doom2.getting.too.tense.mp3
-	case the_da theda2 theda3
-		f=$home/m/doom2.in.the.dark.mp3
-	case ultima
-		f=$home/m/doom2.the.ultimate.challenge.mp3
-	case victor
-		f=$home/m/doom.victor.mp3
-	}
-audio/mp3dec <$f
--- /dev/null
+++ b/bin/dmushi
@@ -1,0 +1,94 @@
+#!/bin/rc
+# this overrides music in final doom and any custom music in pwads, since the
+# labels are hardcoded in the source.
+switch($2){
+case adrian
+	f=$home/mgam/doom2.adrians.asleep.opus
+case ampie
+	f=$home/mgam/doom2.bye.bye.american.pie.opus
+case betwee
+	f=$home/mgam/doom2.between.levels.opus
+case bunny
+	f=$home/mgam/doom.bunny.opus
+case countd count2
+	f=$home/mgam/doom2.countdown.to.death.opus
+case dead dead2
+	f=$home/mgam/doom2.the.demons.dead.opus
+case dm2ttl
+	f=$home/mgam/doom2.title.mp3
+case dm2int
+	f=$home/mgam/doom2.intermission.mp3
+case doom doom2
+	f=$home/mgam/doom2.doom.opus
+case ddtblu ddtbl2 ddtbl3
+	f=$home/mgam/doom2.the.dave.d.taylor.blues.opus
+case e1m1
+	f=$home/mgam/doom.at.dooms.gate.opus
+case e1m2
+	f=$home/mgam/doom.the.imps.song.opus
+case e1m3
+	f=$home/mgam/doom.dark.halls.opus
+case e1m4
+	f=$home/mgam/doom.kitchen.ace.and.taking.names.opus
+case e1m5
+	f=$home/mgam/doom.suspense.opus
+case e1m6 e3m6
+	f=$home/mgam/doom.on.the.hunt.opus
+case e1m7 e2m5 e3m5
+	f=$home/mgam/doom.demons.on.the.prey.opus
+case e1m8 e3m4
+	f=$home/mgam/doom.sign.of.evil.opus
+case e1m9 e3m9
+	f=$home/mgam/doom.hiding.the.secrets.opus
+case e2m1
+	f=$home/mgam/doom.i.sawed.the.demons.opus
+case e2m2
+	f=$home/mgam/doom.the.demons.from.adrians.pen.opus
+case e2m3 inter
+	f=$home/mgam/doom.intermission.from.doom.opus
+case e2m4
+	f=$home/mgam/doom.theyre.going.to.get.you.opus
+case e2m6
+	f=$home/mgam/doom.sinister.opus
+case e2m7 e3m7
+	f=$home/mgam/doom.waltz.of.the.demons.opus
+case e2m8
+	f=$home/mgam/doom.nobody.told.me.about.id.opus
+case e2m9 e3m1
+	f=$home/mgam/doom.untitled.opus
+case e3m2
+	f=$home/mgam/doom.donna.to.the.rescue.opus
+case e3m3
+	f=$home/mgam/doom.deep.into.the.code.opus
+case e3m8
+	f=$home/mgam/doom.facing.the.spider.opus
+case evil
+	f=$home/mgam/doom2.evil.incarnate.mp3
+case in_cit
+	f=$home/mgam/doom2.into.sandys.city.opus
+case intro
+	f=$home/mgam/doom.title.mp3
+case messag messg2
+	f=$home/mgam/doom2.message.from.the.archvile.opus
+case openin
+	f=$home/mgam/doom2.opening.to.hell.opus
+case read_m
+	f=$home/mgam/doom2.end.opus
+case romero romer2
+	f=$home/mgam/doom2.waiting.for.romero.to.play.opus
+case runnin runni2
+	f=$home/mgam/doom2.running.from.evil.opus
+case shawn shawn2 shawn3
+	f=$home/mgam/doom2.shawns.got.the.shotgun.opus
+case stalks stlks2 stlks3
+	f=$home/mgam/doom2.the.healer.stalks.opus
+case tense
+	f=$home/mgam/doom2.getting.too.tense.opus
+case the_da theda2 theda3
+	f=$home/mgam/doom2.in.the.dark.opus
+case ultima
+	f=$home/mgam/doom2.the.ultimate.challenge.mp3
+case victor
+	f=$home/mgam/doom.victor.opus
+}
+play -o /fd/1 $f