Tony "omega" Sergi wrote:
now, it would be nice if they enabled the sound playing calls to
automatically recognize mp3 instead of just wav, so you could specify a
mono mp3 and play it with the standard EMIT_SOUND  / PlaySound calls on
the client.

*nudge* valve *nudge*
;)

-omega
--


a standar way to do that, is to acept foo.mp3 instead of foo.wav,
problem is.. decompress will waster resources, Why save HD space and
waste CPU cycles?.

other way is this:

you reproduce boo.wav
the system detect this files:

boo.wav
boo.mp3
boo.ogg

and play boo.ogg because is the "superior" file format for a audio sound


This is similar to that:


The core try to open a graphics with name doo.pcx
the system found this other files:

doo.pcx
doo.tga
doo.jpg
doo.dta

Then the system will open the dta version because is much usefull for
the render.

Why this other option is better?
- Engine choice whatever he like/he can open
- No need to change anithing at mods
- Work like plug-and-play (the user drop in some files, and the engine
core will get whatever he like) magic for users
- Backward compatible

Why not?
- Cheats?
- More fopens?
- Complex loadimagepixels?
- ...






_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders



Reply via email to