Solved

Playing multiple wav files

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
A short film showing how OnPage and Connectwise integration works.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

919 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

18 Experts available now in Live!

Get 1:1 Help Now