Does anybody use CD audio with ZDoom?

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
User avatar
Grubber
Posts: 1031
Joined: Wed Oct 15, 2003 12:19 am
Location: Czech Republic
Contact:

Re: Does anybody use CD audio with ZDoom?

Post by Grubber »

NeuralStunner wrote:Also, the 'File "" not found' story made my head hurt.
I think MS is to blame here. Error codes easily interchangeable with standard file descriptors? Come on. I also don't agree with the support-old-crap policy. It just encourages developers to continue using bad practises. But given that you probably don't have access to the old crap source code, it's understandable.

As for the topic, I haven't ever used the feature, so I'm for its removal.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49229
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Does anybody use CD audio with ZDoom?

Post by Graf Zahl »

Grubber wrote:
NeuralStunner wrote:Also, the 'File "" not found' story made my head hurt.
I think MS is to blame here. Error codes easily interchangeable with standard file descriptors?
No, of course they aren't. It just so happened that in this particular case both had the same value so the programming error never showed itself.

But the whole list of stories makes me wonder what kinds of morons were working on the software that produced these bugs. Seriously, every half-decent programmer should know never to mess around with system-internal stuff and yet they constantly manage to do anyway.

But I can see why Microsoft needs to address these things anyway. If they don't it's not 'Software XXX is crap because it's badly programmed' but 'Windows xyz is crap because it does not work with software XXX'. It doesn't matter in the end that the real culprit is somewhere else, the user will blame the new Windows version. After all, the (still broken) program worked with what he had before.
User avatar
Grubber
Posts: 1031
Joined: Wed Oct 15, 2003 12:19 am
Location: Czech Republic
Contact:

Re: Does anybody use CD audio with ZDoom?

Post by Grubber »

It just so happened that they didn't foresee the possibility of programmers not checking if the return value is file descriptor or error code. We don't live in an ideal world where this is guaranteed, so they should have designed it in a way where possibility of such mistake is minimal (e.g. by numbering error codes in other fashion than from 0 upwards). This is a case of non-fool-proof design, thus it's IMO MS's fault. This particular feature (DOS open) begs to be misused and it's no wonder it actually was. They should have kept idiots in mind from the beginning. At least they do now (as everyone (more or less) else does, luckily).
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49229
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Does anybody use CD audio with ZDoom?

Post by Graf Zahl »

It's easy to talk like that with more than a quarter of a century of hindsight.

Don't forget that these values were all old DOS relics from 25+ years ago. Back then programming was quite different and none of the foolproofness awareness you cited existed yet.
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Does anybody use CD audio with ZDoom?

Post by NeuralStunner »

Douglas Adams wrote:A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
And another sobering thought:
Douglas Adams wrote: Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49229
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Does anybody use CD audio with ZDoom?

Post by Graf Zahl »

NeuralStunner wrote:
Douglas Adams wrote:A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.

... and that is why since a few revisions back ZDoom mercilessly aborts with an error if certain foolish exploits are attempted. :twisted:
User avatar
zwouth
Posts: 72
Joined: Wed Oct 31, 2007 5:57 pm

Re: Does anybody use CD audio with ZDoom?

Post by zwouth »

Ugh, the whole debate on backwards compatibility. Microsoft HAS to do it - otherwise what's the point of getting Windows? If they broke all the junk apps that people rely on well... business people would probably still run win95 :roll: lol ask Intel about backward compatibility sometime... Who's fault is it when "that's just the way it is?"
Graf Zahl wrote:Back then programming was quite different and none of the foolproofness awareness you cited existed yet.
I'm always reminded of this http://support.microsoft.com/kb/60089 and that "Death is the best teacher" :twisted:
Randy wrote:Does anybody use CD audio with ZDoom?
Not for a long time, so if it's in the way +1 to scrapping it.

add:
Xaser wrote:Don't worry, there's more. Here's some extra entertainment from the same author -- some, if not all, the linked stories are here, too, so there's more where that came from.
This is great stuff, thanks for linking Xaser
User avatar
Cutmanmike
Posts: 11353
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Re: Does anybody use CD audio with ZDoom?

Post by Cutmanmike »

Oddly enough I used this yesterday. My Mrs came back from a concert and got a free CD from them and asked to stick it on, but I was in the middle of a game so I dropped the console and played it within ZDoom.

So far, I've only used this function to show off. "Hey look what I can do in Doom!!" :mrgreen:
Sodaholic
Posts: 1959
Joined: Sat Nov 03, 2007 4:13 pm

Re: Does anybody use CD audio with ZDoom?

Post by Sodaholic »

In the few instances that people would actually use it, would it be possible to rewrite the cd playing code instead of just removing it?
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: Does anybody use CD audio with ZDoom?

Post by randi »

Yes, with NT kernels, it's possible to read the raw digital data off the disc and stream it through the sound system like any other digital music format. However, in the 10 years that CDs have been supported by ZDoom, so far it looks like it has never been used seriously. It works well enough as it is, so there's really no reason to modify it. Given that, it seems much more appropriate to remove it than to rewrite it.
User avatar
Kinsie
Posts: 7402
Joined: Fri Oct 22, 2004 9:22 am
Graphics Processor: nVidia with Vulkan support
Location: MAP33
Contact:

Re: Does anybody use CD audio with ZDoom?

Post by Kinsie »

Graf Zahl wrote:... and that is why since a few revisions back ZDoom mercilessly aborts with an error if certain foolish exploits are attempted. :twisted:
Are these exploits of the "prone to breaking randomly" kind, or of the "this is too awesome for you to be allowed to do" kind?
User avatar
InsanityBringer
Posts: 3392
Joined: Thu Jul 05, 2007 4:53 pm
Location: opening the forbidden box

Re: Does anybody use CD audio with ZDoom?

Post by InsanityBringer »

Kinsie wrote:Are these exploits of the "prone to breaking randomly" kind, or of the "this is too awesome for you to be allowed to do" kind?
The former. The covered-up exploit involved overriding the internal MAPINFO lumps (can't remember the names offhand) with new ones from a mod, because those files are prone to change at any time. There's no need to override them considering that just making a lump named "MAPINFO" is enough.
luzago

Re: Does anybody use CD audio with ZDoom?

Post by luzago »

in fact,I do not use it myself.
User avatar
Ixnatifual
Posts: 2287
Joined: Fri Dec 12, 2003 6:44 pm
Contact:

Re: Does anybody use CD audio with ZDoom?

Post by Ixnatifual »

I usually slap on the CD when playing Hexen. I could probably live without, though.
chmmr
Posts: 26
Joined: Sun Jun 04, 2006 2:17 pm

Re: Does anybody use CD audio with ZDoom?

Post by chmmr »

Removing CD support would make it harder to do stuff like this:

http://www.doomworld.com/vb/showthread.php?postid=938250

(assuming anyone does something with that idea)
Post Reply

Return to “General”