Forum

Help With Sound?

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Postby scar3crow » Sat Nov 25, 2006 7:13 am

That is a really good feature request. Could also be used to modify sound when in liquids ....
User avatar
scar3crow
InsideQC Staff
 
Posts: 1054
Joined: Tue Jan 18, 2005 8:54 pm
Location: Alabama

Postby Dr. Shadowborg » Sun Nov 26, 2006 2:51 am

Just thought of a possible (maybe) way of doing this, though it'd probably be best for cutscenes, preferably without any ambience noises.

The way it would work would be to stuffcmd like mad, manually adjusting the main sound volume down to nothing, setting to whatever new sound you want, then stuffcmd like mad once again back up to whatever the main sound level was set at originally.

Obviously this would probably only work in SP though. *shrugs*
User avatar
Dr. Shadowborg
InsideQC Staff
 
Posts: 1110
Joined: Sat Oct 16, 2004 3:34 pm

Postby Sajt » Sun Nov 26, 2006 6:14 am

I think it was bloodmage that had some funky QC sound echoing :D
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
Sajt
 
Posts: 1215
Joined: Sat Oct 16, 2004 3:39 am

Postby LordHavoc » Sun Nov 26, 2006 10:50 pm

Sajt wrote:I think it was bloodmage that had some funky QC sound echoing :D


Blood Mage definitely had cheesy echo effects, I had completely forgotten about this - I hadn't really noticed that it was doing something special with sound while I was repeatedly dying in the ice caves from that stupid frost damage that even cold immunity spells barely protected me from (and not for long enough).
LordHavoc
 
Posts: 322
Joined: Fri Nov 05, 2004 3:12 am
Location: western Oregon, USA

Postby Sajt » Sun Nov 26, 2006 10:51 pm

Hehe.. it's always a touchy subject to bring up BloodMage around LordHavoc :D
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
Sajt
 
Posts: 1215
Joined: Sat Oct 16, 2004 3:39 am

Postby Quake Matt » Mon Nov 27, 2006 1:00 pm

*If* I ever get the Quake source compiled, I was planning to do some simple engine-based sound stuff. Nothing overly fancy, just surround-sound support and distance pitch-reduction.

Still, audio does seem to be a bit neglected by the mighty engine-coders...
User avatar
Quake Matt
 
Posts: 129
Joined: Sun Jun 05, 2005 9:59 pm

Postby frag.machine » Mon Nov 27, 2006 11:27 pm

FrikaC wrote:I personally would like to see the ability to do DSP style effects on the sound in certain areas of the map (e.g. make a cave all echo-y).


Another thing that keeps the sound dept to evolve is the lack of good and easy to use GPL sound libraries. Too bad you don't have something like FMOD to easily attach to an engine and add echoes, fades, doppler and another cool effects... :roll:
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2090
Joined: Sat Nov 25, 2006 1:49 pm

Postby LordHavoc » Thu Nov 30, 2006 11:47 pm

Quake Matt wrote:*If* I ever get the Quake source compiled, I was planning to do some simple engine-based sound stuff. Nothing overly fancy, just surround-sound support and distance pitch-reduction.

Still, audio does seem to be a bit neglected by the mighty engine-coders...


DarkPlaces has surround sound, but pitch control requires a rewrite of most of the quake sound system, which is why DP still lacks it.

I take some mild offense to your claim of ignoring sound, DarkPlaces has ogg decoding, higher quality resampling (which is done at load in quake, not at mix time like it normally would be, hence the pitch control problem), surround sound, a modified mixer based on audio block submission rather than DMA access (since sound drivers haven't liked direct DMA access since the old sound blaster days, although DMA is definitely much lower latency).
LordHavoc
 
Posts: 322
Joined: Fri Nov 05, 2004 3:12 am
Location: western Oregon, USA

Postby LordHavoc » Thu Nov 30, 2006 11:48 pm

frag.machine wrote:Another thing that keeps the sound dept to evolve is the lack of good and easy to use GPL sound libraries. Too bad you don't have something like FMOD to easily attach to an engine and add echoes, fades, doppler and another cool effects... :roll:


SDL_mixer doesn't seem that bad to me but I haven't had a chance to examine it properly.
LordHavoc
 
Posts: 322
Joined: Fri Nov 05, 2004 3:12 am
Location: western Oregon, USA

Postby frag.machine » Fri Dec 01, 2006 10:02 pm

LordHavoc wrote:
frag.machine wrote:Another thing that keeps the sound dept to evolve is the lack of good and easy to use GPL sound libraries. Too bad you don't have something like FMOD to easily attach to an engine and add echoes, fades, doppler and another cool effects... :roll:


SDL_mixer doesn't seem that bad to me but I haven't had a chance to examine it properly.


I just took a quick look to the docs... May be a start point, but lacks too many features (echoes, for example). At least it has an API to extend it using some kind of processor plugin, may worth a second look.
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2090
Joined: Sat Nov 25, 2006 1:49 pm

Postby LordHavoc » Sun Dec 03, 2006 12:10 pm

frag.machine wrote:
LordHavoc wrote:SDL_mixer doesn't seem that bad to me but I haven't had a chance to examine it properly.


I just took a quick look to the docs... May be a start point, but lacks too many features (echoes, for example). At least it has an API to extend it using some kind of processor plugin, may worth a second look.


Just spawn more sound sources for echoes, I HATE EAX reverb effects based on room size, they sound so cheesy, it's better to spawn echo sources at wall surfaces or leaf centers or anything of that sort, but not room size.
LordHavoc
 
Posts: 322
Joined: Fri Nov 05, 2004 3:12 am
Location: western Oregon, USA

length of sound

Postby MikeWoodham » Sat Jan 06, 2007 8:33 pm

I seem to have found that there is a play limit of 3min 11 sec for a single .wav file in Q1SP. Does anyone know if there is a get around for this? I have some music files that are 4 - 5 minutes long that I want to incorporate into a level.
MikeWoodham
 
Posts: 4
Joined: Wed Nov 22, 2006 3:30 pm

Postby venomus » Sun Jan 07, 2007 12:26 am

Maybe someone should try and find out how Half-Life's sound engine works. It has supported dynamic pitch, convincing underwater, caves and other weird distort effects from the beginning, even in software.
venomus
 
Posts: 41
Joined: Tue May 24, 2005 4:54 pm

Postby Sajt » Sun Jan 07, 2007 2:55 am

Note what LordHavoc just said :)
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
Sajt
 
Posts: 1215
Joined: Sat Oct 16, 2004 3:39 am

Previous

Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest