Link to home
Start Free TrialLog in
Avatar of Shellman
Shellman

asked on

Sound Mixing

Wow is it possible to mix for example 2 wave files (or .raw's, I mean that sort things that the Soundcard mixer normally does).
Does anyone have a source sample or a Component (with source)?

Shellmen
ASKER CERTIFIED SOLUTION
Avatar of rwilson032697
rwilson032697

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nrico
nrico

You can *also* get DelphiX (go to delphi.about.com to find a link to the DelhpiX pages) and use DirectSound. That way, your sound will get mixed with other applications as well.
<Lock!>
Hi, just a note
I remember meikls source very well cause he made it for me half a year ago.
that time i tried to use dwavemix.
But very early you could see
the sound is not safe !
it's disturbed by to many windows operations, even by the upcoming screensaver (  or picture transitions for instance)

So i changed to directsound ( can also be found on carlos site up above)
It's much better. but there is one bad thing with it :
after 40 - 50 waves loaded into the soundbuffer, the quality becomes
a bit squeaky
so you better free the directsoundbuffer and
create the tdirectsound again for further good wavequality
after let's say every 30 played waves in one channel
good luck
Indi
Avatar of Shellman

ASKER

Works very fine. Thank you.
I know it is possible to mix sounds with directx. But I didn't want to use DX (I know DX a bit, I do also know DirectDelphi / DelphiX / all the other packages, and I do also know it is really easy to mix two (or more) sounds with DSound), because I thougth, it would have been too much work for my little project. AFAIK the DX packages for delphi are quite slow, because they are (and must be, cause they are packages :-P) too generic.

Finally this sample does everything I want and I've got a source to read, so im happy :o)

Shellman