RE: [GD-General] Sound
Brought to you by:
vexxed72
From: Ken N. <kn...@wh...> - 2005-05-15 20:47:58
|
Brian, Thank you for your feedback! I just bought the book, so hopefully it gets here in a few days. I can't use quieter sounds simply because I'm mixing up to 32 sound sources at once and if I reduce their volume to 1/32 the original then the user would have to have their speakers cranked up. I'll look into it some more and hopefully find a solution that will meet the requirements. Thanks again, -Ken Noland -----Original Message----- From: gam...@li... [mailto:gam...@li...] On Behalf Of Brian Hook Sent: Sunday, May 15, 2005 12:55 PM To: gam...@li... Subject: Re: [GD-General] Sound On Sun, 15 May 2005 11:42:03 -0400, Ken Noland wrote: > Anybody know any good sound lists or really great articles on > software sound mixing? Try a good book on sound programming, several of them exist. Off the=20 top of my head is A Programmer's Guide to Sound by Kientzle. > an addition to the two sound samples produces errors when the sound > wraps around the limitations of a signed short. Yes. Welcome to sound programming =3D) > Clamping that > doesn't work either since sound is measured in a difference of > samples. Clamping doesn't work, period, since you end up clipping and=20 introducing distortion as a result. > Doing an average on the two sound samples causes sounds to > be more quiet then they should naturally be, so is there a better > way? Well, an average is just doing the addition and then rescaling the=20 results, which isn't always going to help you and just raises the=20 noise floor. There is no easy way around this. It's a large, complicated topic,=20 but the simplest answer (until you learn about the intricacies=20 involved) is "use quieter sounds". That way when you sum a bunch of=20 them, they hopefully won't clip, but even that's not a guarantee. Some fancier stuff mixes in floats and rescales on the fly, or applies=20 real-time compression/limiting, but that starts getting into the realm=20 of REAL complicated for someone without sound programming experience. Brian ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_ids93&alloc_id=16281&op=3Dick _______________________________________________ Gamedevlists-general mailing list Gam...@li... https://lists.sourceforge.net/lists/listinfo/gamedevlists-general Archives: http://sourceforge.net/mailarchive/forum.php?forum_idU7 |