.NET Components for Mobility

SoundPlayer

Last post 07-24-2008 12:56 PM by PeterFoot. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 06-21-2008 7:52 PM

    SoundPlayer

     when using theSoundPlayer to play a wav file, how do i determine if the wav file is still being played?

    http://oldsap.blogspot.com
  • 06-24-2008 6:20 AM In reply to

    Re: SoundPlayer

    If you use PlaySync the method will not return until the file is finished, otherwise there is no event when the player stops. For example you could use PlaySync in a background thread and Invoke back to your UI thread to signal when it has finished.

    Peter

    Peter Foot
    Microsoft Device Application Development MVP
    www.peterfoot.net | www.inthehand.com
  • 06-26-2008 7:00 PM In reply to

    Re: SoundPlayer

     is there also a way to play a sound or vibrate the phone when making an outgoing call?  i'd like to make the phone vibrate when a call is connected or when a call doesn't make through.  i tried using systemstatus but i think sounds and vibrations are nulled when an outgoing call is being made.

    http://oldsap.blogspot.com
  • 07-24-2008 12:56 PM In reply to

    Re: SoundPlayer

    The system disabled loudspeaker sound when a voice call is active. I suspect vibration is disabled for the same reason - the user will be holding the phone to their ear and it could come as a bit of a shock!

    Peter

    Peter Foot
    Microsoft Device Application Development MVP
    www.peterfoot.net | www.inthehand.com
Page 1 of 1 (4 items)
Copyright © 2001-2008 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.