Solved

Media Player

Posted on 2002-06-05
5
182 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
5 Comments
 
LVL 22

Expert Comment

by:mnasman
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 50 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

759 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