PlaySound, pause etc

H

Hilton

Hi,

If I call PlaySound through PInvoke, is there any way to pause it and resume
later? If not, are there any other APIs that would allow me to play a sound
and pause/resume? What about a command line interface to 'Windows Media'
that would start it in the background (non-visible) and then I'd call it
with "media -play dogbark.mp3" and "media -pause" or "media -stop" -
anything similar? Any ideas?

Thanks,

Hilton
 
G

Guest

Not with PlaySound, no. For pausing you need more control, which is
provided with the waveOutXxxx APIs.
 
H

Hilton

Chris,

Thanks for the info. I tried it, but it failed on an MP3 file. Do you know
if it works with MP3s? If not, anything else out there?

Thanks,

Hilton
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top