Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Bug Reports / MIDI files bug

Author
Message
Twinsen
19
Years of Service
User Offline
Joined: 20th Jun 2006
Location: Romania
Posted: 13th Apr 2008 10:12
first of all, here's the code:



of course you see that this program plays the midi and if you press the ENTER button while playing, the music volume will be set to zero. now here's what you have to do: run the program once, press ENTER while it's playing so that you mute the melody, exit the program and run it again ... you will see that now, the volume is set to zero at the beginning of the program ... how is this possible ??? it's like Windows remembers the last volume of the midi, even after I exit the program ... this is MORE than weird. you'll find the midi attached to the Download button

Could you help me treat my injured Dino-Fly ?
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 13th Apr 2008 13:35 Edited at: 13th Apr 2008 13:39
Yes, same here. In fact it was worse than that. I got total silence until I amended the code:

Quote: "load music "menu.mid",1
play music 1
set music volume 1,100
do
if keystate(28)=1 then set music volume 1,0
loop"


I then commented out the added line and got the symptoms you describe. Unhelpful to say the least - although a workaround is easy, of course.

At first I assumed I had the volume turned down on the PC - but I didn't.

Looks like the sound commands are overdue for an overhaul.

WindowsKiller Maybe - but the Help file should tell you that. Very few DBP users are aware of such subtleties - and why should music be treated any differently than other sound or media anyway??

I think we should be able to expect DBP to run from a consistent initialisation condition.
Twinsen
19
Years of Service
User Offline
Joined: 20th Jun 2006
Location: Romania
Posted: 13th Apr 2008 13:38
heh, yes I did that too (SET MUSIC VOLUME 1,100) ... so for the MIDI, I actually change the Windows MIDI volume ... hmm weird ... why doesn't this happen for other files like .mp3 or .wav ??? in their case, the volume should change the WAVE OUT Windows volume in the Mixer ...

Could you help me treat my injured Dino-Fly ?
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 13th Apr 2008 13:40
Quote: "why doesn't this happen for other files like .mp3 or .wav "


Agreed. Same goes for other features like lighting.
Twinsen
19
Years of Service
User Offline
Joined: 20th Jun 2006
Location: Romania
Posted: 13th Apr 2008 13:42
lightning ??? what do you mean ? please explain as I understand lightning commands have a similar behavior from what you are saying ..

Could you help me treat my injured Dino-Fly ?
Twinsen
19
Years of Service
User Offline
Joined: 20th Jun 2006
Location: Romania
Posted: 13th Apr 2008 13:55
also, what's the bug then ??? MIDI changing the Windows volume or MP3 and WAV not changing it ???

Could you help me treat my injured Dino-Fly ?
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 13th Apr 2008 14:39 Edited at: 13th Apr 2008 14:40
Quote: "lightning ??? what do you mean ? please explain as I understand lightning commands have a similar behavior from what you are saying .."


You've lost me completely now. I was talking about LIGHTING.

If you change the colour of a light in a program, the next time you run the program the lights are restored to their default DBP values. This is standard DBP behaviour and I would expect the set music volume command to work the same way. Is that so hard to understand?

Your problem with music volume looks like a bug to me - or an oversight in the Help files. The sensible thing for DBP to do is to use a predictable value for initialising. I don't care whether it should be set as ON or OFF by default - as long as it's predictable like most other things (such as lighting ).
Twinsen
19
Years of Service
User Offline
Joined: 20th Jun 2006
Location: Romania
Posted: 13th Apr 2008 15:05
lol sorry sorry sorry for misreading it's only an extra "N" :p anyway, yes, it seems like a bug to me so I expect this to be marked as CONFIRMED ... btw: what's the criteria based upon which DB Upgrades are released ?? I mean how many bugs do we have to detect so that The Game Creators decide to fix them all with a single patch ???

Could you help me treat my injured Dino-Fly ?

Login to post a reply

Server time is: 2026-06-09 19:41:30
Your offset time is: 2026-06-09 19:41:30