Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


3 Tmediaplayer

Posted on 1999-07-08
Medium Priority
Last Modified: 2010-05-18
under D3 / WIN98 i want to play WAV-files with the Tmediaplayer.
And i want to play three wav-files simultaniously.
Therefore i have created three mediaplayers on one form.
But only the first one which is started plays.
The others do not play.
Although the parameter WAIT is set to FALSE (=no waiting till the end).


Thanks !

Question by:titz
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 13

Expert Comment

ID: 1387254
Sorry, you can only play a wav on 1 MediaPlayer at a time. Next to that most soundcard can't handle it eighter.

LVL 15

Accepted Solution

simonet earned 150 total points
ID: 1387255

What Epsylon said is true. Your system (not your program) can only play 1 wave file at a time. This both is a PC hardware and Windows limitation.

There is, however a workaround for that: you can mix the wave files, so that it sounds like they are 3 different sounds being played at once, but they are actually only 1 source of sound, which is made up of up to 8 wave files.

There's already a library that allows you to mix wave files, and still work with other sound formats. You can find more info about this library + some Delphi sample code at:

The library in question is MIDAS Digital Audio System, and links to where you can download it from can be found in the links above.




Author Comment

ID: 1387256
hi simonet,

is there no other possibility than to use MIDAS ?
i think the solution by mixing is ok, but i would like a solution without another great system, which i do not know.

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

LVL 15

Expert Comment

ID: 1387257
You can actually code the whole thing by hand, but that's neither fast or safe.

I *really* advise you to use MIDAS, since it's very stable, easy to use, free, well documented and supports Delphi.

As far as I know, there's no other free library that compares to MIDAS. Sorry if that disappoints you, but giving MIDAS a try is very worthwhile.

Please give it a try.. using MIDAS, it's not as hard as you think. If you decide to do it by not using MIDAS, then things are very, very complicated.



Author Comment

ID: 1387258
hi alex,

ok, i will try midas.
i hope, it will not take a lot of cpu-power. because i want to use it in a game and the cpu-power is needed for the motion.

thanks and greetings
LVL 15

Expert Comment

ID: 1387259
MIDAS was primarily developed for use in game engines.


Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

722 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