Advertisement

Audio mixing

Started by June 14, 2003 12:44 PM
2 comments, last by MindCode 21 years, 5 months ago
Lately I''ve been getting interested in audio programming. Specifically what I would like to do is mix different sets of audio data together into one audio stream. Eventually I want to learn how to alter the sounds given some special effects. Does anyone know some good resources to get me a start? Also, I don''t know very much about sending raw audio (pcm) data through windows to be played on the sound card. Is there a method that gets me as close to the audio hardware as possible? I know of DirectSound3D in DirectX but that is for spatial 3D sound and precludes doing any mixing of my own. Plus the whole intent is to learn how to do this on my own; I want to do as much of the work in software as possible. So any Win32 API tips on this would be awesome. Thanks.
That's just my understanding; I could be wrong.
Why dont you get some multitrack recording software? You could record your music easilly and then transfer it to whatever you want. Get an electronic keyboard....extremely helpfull. I dont know if this is exactly what you were asking but whatever.
Advertisement
The Music DSP archive contains a wealth of algorithms and sources for audio processing and generation. PortAudio will greatly simplify the streaming process, and is available for just about every platform that matters. Even if you don''t use it directly, the source should give you enough pointers about managing low-latency buffer streaming.
As far as APIs go, I think SDL lets you define your own mixing function callbacks.

Do not meddle in the affairs of moderators, for they are subtle and quick to anger. ANDREW RUSSELL STUDIOS
Links :: [ GD | TG | MS | NeHe | PA | SA | DS | RL | TA | LiT | H*R | 20Q ]     Articles :: [ MUD Pies ]
Got Clue? :: [ Start Here! | Google | MSDN | GameDev.net Refrence | OGL v D3D | File Formats | Go FAQ yourself ]

This topic is closed to new replies.

Advertisement