Jump to content

  • Log In with Google      Sign In   
  • Create Account


Catching DirectSound Software mixing Output?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 SikCiv   Members   -  Reputation: 122

Like
Likes
Like

Posted 23 September 1999 - 01:47 PM

Anyone know how to catch (save to memory) the output of the primary sound buffer while directsound is mixing samples from the secondary buffers?

I guess its only possible in software mixing, as hardware mixing is done on the sound card.

Also, is it possible to dump the contents of the sound card's output into your own buffer?

What i'm trying to do is mix a few seperate samples into one wave file. But my problem is I cant find any code to mix samples using software mixing, so I am trying to find a way to use Directsound's mixing feature to do it.

I know there are audio applications to do this, but I need to implement this feature into my own application.


(-: !!!!help!!!! :-(



Sponsor:

#2 Sphet   Members   -  Reputation: 631

Like
Likes
Like

Posted 23 September 1999 - 08:12 AM

Audio mixing works like image blending, I beleive. You can add two signals together by halving them both first. The halving is needed to keep the data from over flowing or distorting, but, admitedly, you lose volume because the peak differentials are halved.

a/2 + b/2 = c


#3 SikCiv   Members   -  Reputation: 122

Like
Likes
Like

Posted 23 September 1999 - 01:47 PM

yeh, but isn't mixing more complicated?

Ive seen some assembly source code to mix two 8bit mono samples, and it looked VERY compicated (yes I do understand ASM). I dont have the time or resources to make my own mixing routine.
My objective is to mix 'many' samples into onoe sample in CD quality! Why re-invent the wheel, when its already available.

Anyone have a cheap library or source code for CD quality mixing??
It doesnt have to be lightning fast, I just need it to mix good quality sound.


pls help.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS