Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SndPlayAsync

Windows Mobile 6.5
4/8/2010

This function starts asynchronous playback of a sound.

Bb431742.note(en-us,MSDN.10).gifNote:
This call will be successful only if the sound is not already playing.


HRESULT SndPlayAsync (
   HSOUND hSound,
   DWORD dwFlags
);

pszSoundFile

[in] The sound to play.

Bb431742.note(en-us,MSDN.10).gifNote:
The sound handle was created using function SndOpen.
dwFlags

Indicates playback options.

Bb431742.note(en-us,MSDN.10).gifNote:
Currently, the only flag supported is SND_PLAY_IGNOREUSERSETTINGS, so dwFlags can be either 0 or SND_PLAY_IGNOREUSERSETTINGS.

The function returns S_OK if successful, returns E_HANDLE if the sound handle is currently used for playing a sound, otherwise returns a standard HRESULT error code. If any flag besides SND_PLAY_IGNOREUSERSETTINGS are set through parameter dwFlags, the function will return E_INVALIDARG.

You should call function SndStop to terminate the asynchronous sounds on your process before your application exits.

Headersoundfile.h
Windows Embedded CEWindows CE 5.0 and later
Windows MobileWindows Mobile 6 Classic and later, Windows Mobile 6 Professional and later, Windows Mobile 6 Standard and later

Community Additions

Show:
© 2014 Microsoft