?
Solved

Media Player

Posted on 2002-06-05
5
Medium Priority
?
188 Views
Last Modified: 2010-04-04
I have developed a program which when running plays a large wav file using the media player. It also uses small wav files for audio warnings. When the small wav files are called it stops the main wav file and plays the warning after which it restarts the main wav file from the beginning.. How can I get the main file to pause while playing the warning file and then resume from where it left off rather than start at the beginning.
0
Comment
Question by:alshepstone
[X]
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
5 Comments
 
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 7055874
Hello

  Use the PlaySound API to play the small wav files, and pause the media player while that
0
 
LVL 12

Accepted Solution

by:
Lee_Nover earned 200 total points
ID: 7055876
have to players :)
one for the big wavfile and one for the warnings

then in the warning procedure like:

procedure TForm1.SoundWarning(WarningType: Integer);
begin
  MediaPlayer1.Pause;
  // handle warning type and set the mediaplayer file
  MediaPlayer2.Play;
  MediaPlayer1.Unpause;
end;


dunno the mediaplayer methods :)
I use fmod for audio www.fmod.org :)
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 7056026
too late :-(
0
 
LVL 1

Expert Comment

by:pnh73
ID: 9010460
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept answer from Lee_Nover

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Paul (pnh73)
EE Cleanup Volunteer
0

Featured Post

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.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month9 days, 18 hours left to enroll

762 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