467,147 Members | 1,214 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,147 developers. It's quick & easy.

how to play audio

hi friends,

I am developing a webapplication (using ASP.NET 2.0). In that I need to play audio file in the following scenario.

Case 1: Only one file will be given as input to audio device.Untill the user presses ALT+F4 it should continue playing.

Case 2: more than one Audio file will be given as I/P to audio device. They will be placed in cue, so one after one they will be played. Here, if the user presses ALT+F4 the playing should be stopped and audio device should not play the remaining files which are in cue. It have to clear it's memory.

I tried with mcisendstring function (winmm.dll)using open, break, play, close command strings. I used "break" bcoz I am playing audio files in "wait mode". But I failed in case 2. whats happening is , if the user presses ALT+F4 then the file which is currently playing is stopped. But the files which are in cue are getting played.

So I request u to suggest how to meet my requirement,

Thank U all.
Feb 2 '08 #1
  • viewed: 1408

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

21 posts views Thread by Steve K | last post: by
6 posts views Thread by Andrew Poulos | last post: by
4 posts views Thread by jassan@eudoramail.com | last post: by
reply views Thread by laredotornado@zipmail.com | last post: by
1 post views Thread by Ron Provost | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.