Archived

This topic is now archived and is closed to further replies.

How do they do it..?

This topic is 5012 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I was fiddling around, trying to make a small sound engine using the windows waveOut API, but came on a deadlock pretty quickly. I was trying to call the waveOutSetPitch function so that I could change the pitch of a looping wav to have the ability to make, say, a doppler effect. But, to my great disapointment, it doesn''t work. So I am wondering. Unless I am not doing the method call correctly, how did older video games that didn''t use DX or OGL change the pitch of a wave file? If I can''t even do it in Windows, it just seems that it would be somehting impossible to do, but it obviously isn''t. My signature used to suck. But it''s much better now.

Share this post


Link to post
Share on other sites
They might do it in software, but my guess would be that there is either a different function or you''re calling that one incorrectly. I''m sure some code would help.

BTW, your image doesn''t load (403 denied), thus your sig continues to suck.

Share this post


Link to post
Share on other sites
Just figured out why it didn''t work. It''s because my sound card doesn''t support it! I''m wondering how this is possible, since I have the Audigy2 sound card.

Which brings me back to my original question. How do you code changing sound pitch without DX, ODL, or waveout (since it obviously doesn''t work with me!).

I know my signature still sucks now, I haven''t found a new image to my liking.

Thanks

My signature used to suck. But it''s much better now.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Mix it in software, scale the sample data just like scaling image, with some proper interpolation/smoothing algorithm.

Share this post


Link to post
Share on other sites
quote:
Original post by Anonymous Poster
Mix it in software, scale the sample data just like scaling image, with some proper interpolation/smoothing algorithm.
Is it fast?



My signature used to suck. But it''s much better now.

Share this post


Link to post
Share on other sites