Solved

Playing multiple wav files

Posted on 1997-08-28
5
486 Views
Last Modified: 2010-04-06
Hi,
I need to create a multimedia presentation using Delphi3.
I have tried to play background music and while that is playing, start a wav of a voice but I either get a MIDI error or the voice never gets played. I have tried using 2 Media Player controls to solve this problem. Someone told me that I might have to "stream" the two wave files into the midi player yet I have no idea on how that is to be done.
I basically need source code(commented) that would play two wav files simultaneously. I have Sound Blaster 32Bit. Windows 95. Delphi 3.0.  Please e-mail me the answer in an arj or zip ONLY if it is not larget than 250K if it is, we will discuss some other means of transfer via the web.
Thank you.
Max Bolotnikov
maxcom@interserv.com

P.S. If my E-Mail gets screwed up I will need you to resend the file.
0
Comment
Question by:MAXcom
  • 3
5 Comments
 

Author Comment

by:MAXcom
ID: 1342842
Adjusted points to 333
0
 

Author Comment

by:MAXcom
ID: 1342843
Must also show (with source) how I can play avi files that contain sounds as well as background music at the same time.
0
 

Expert Comment

by:nir_l
ID: 1342844
I'm not sure how aidful my tip would be, but I can tell you how to mix WAV files. There's a microsoft free DLL that does just that. It's called WAVEMIX.DLL and it can play upto 8 mixed WAV files. I have the interface for this dll and I know of a shareware component which fully implemented its usage so you won't have to actually have the .DLL

Tell me if you find this aidful.
0
 

Author Comment

by:MAXcom
ID: 1342845
If you can tell me (explain) how to actually call the procedures from the DLL that would be great.
0
 
LVL 8

Accepted Solution

by:
ZifNab earned 330 total points
ID: 1342846
Hi MAXcom,

There exists a component which is a translation of the Wavemix DLL. The component is freeware and with source! Believe you needed that? The component can play until 8 wave files simultaneously. Think that's enough, not?
You can find it on this address, but I'll also send a copy of the file to you e-mail address.

http://www.digiserve.com/cmab/download/dwavemix.zip

Hope to have helped you,
Have fun,
c.u. ZifNab;
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question