Solved

Playing multiple wav files

Posted on 1997-08-28
5
468 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

760 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now