Solved

Media Player

Posted on 2002-06-05
5
187 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 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

717 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