how to call a running thread?

G

Guest

Hello all,
i am making a small wave player with mobile application, i have three
buttons, one to play wave file, second for pausing, and third for restatring
(resuming).
the play button restart a thread that call a play function, now when i click
on pause button how could i make the pause function pause the runing wave
file in the thread?

Thanks in advance
Regards
Tamer Hesham
 
F

Fabien

Hi,

Try to suspend the thread with the function : SuspendThread. (you must
import the function with dllimport).

BR

Fabien Decret


Tamer Hesham a écrit :
 
C

Chris Tacke, eMVP

How are you palying the audio? If you're P/Invoking "PlaySound" as I
suspect, you can't pause it. You'll have to move to the more complex
waveOutxxx APIs.

--
Chris Tacke
Co-founder
OpenNETCF.org
Are you using the SDF? Let's do a case study.
Email us at d c s @ o p e n n e t c f . c o m
http://www.opennetcf.org/donate
 
G

Guest

Yes, i am P/Invoking Playsound, so what can i do to pause the file .
And another questio, i am trying to use the OpenNet.multimedia.audio.player,
but it doesnt work good,is it work with CF 2.0 ?
the problem: i succeed to play a file but with noise, when i try to use
pause or stop functions, nothing happened, no stoping or pausing, also when i
try to set the volume property it stops the runing file, how could i resolve
this issue?

Thanks in advance,
Regards,
Tamer Hesham
 

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