Mancubus
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Source Ports > Doom II MAP08 music hanging up? [in several ports]
 
Author
All times are GMT. The time now is 04:37. Post New Thread    Post A Reply
Cyanosis
Member


Posts: 652
Registered: 10-10


Toward the end of the song on the last note, it has a habit (albeit rare) of hanging up and looping endlessly even as the song starts itself over, this has happened on ZDoom/Skulltag before, and I figured it might of just been a ZDoom problem but it just happened in Chocolate Doom so I'm wondering what's the deal?

Old Post 06-01-11 12:25 #
Cyanosis is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
printz
CRAZY DUMB ZEALOT


Posts: 6849
Registered: 06-06


Must be some bug in the original MUS file. Note that the MAP08 version loops fine. It's the MAP14 and MAP22 songs that are faulty. In the original OPL mode, the bug is masked: while you do get to hear a slightly prolonged note at the end, it will be cut short at the song's restart.

Old Post 06-01-11 13:32 #
printz is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Cyanosis
Member


Posts: 652
Registered: 10-10


That explains it, and I was using OPL so I was rather surprised when it occurred.

Old Post 06-01-11 15:27 #
Cyanosis is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
natt
Junior Member


Posts: 248
Registered: 05-11


Yeah, map14 and map22 use a slightly different version of the mus than map08. Here are the last few events in channel 5:

code:
[05]note on: key 70 velo 64 [05]note off: key 70 velo 0 [05]note on: key 67 velo 64 [05]note off: key 67 velo 0 [05]note on: key 62 velo 64 [05]note off: key 62 velo 0 [05]note on: key 63 velo 64 [05]note off: key 63 velo 0 [05]note on: key 67 velo 107


That last note on is not terminated before the song loops, and keeps on playing until that channel happens to hit a note off event for the appropriate key a minute plus into the song. Sounds quite annoying. My guess is that the problem was spotted in original testing but the fix was only put into the MAP08 version by accident.




It's an easy fix to simply send "all notes off" whenever looping, but that will break any track that relies on that behavior and uses it to sustain a note through the loop point.

Does this occur with the original exe? I can't see any reason offhand why it wouldn't, but just checking.

Last edited by natt on 06-01-11 at 16:45

Old Post 06-01-11 16:34 #
natt is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Megamur
Forum Regular


Posts: 970
Registered: 02-11


This happens all the time to me. Glad to hear it's not just my sound card screwing up or something.

Old Post 06-01-11 22:09 #
Megamur is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
natt
Junior Member


Posts: 248
Registered: 05-11


SDL_Mixer ports should be "mostly" unaffected by this. The note still hangs for a few seconds that it shouldn't, but SDL_Mixer does all notes off at loop point, so it cuts off then.

Old Post 06-02-11 05:41 #
natt is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 04:37. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Source Ports > Doom II MAP08 music hanging up? [in several ports]

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Forums Directory