LoadSoundSync method |
|
Remarks
Loads a song from the specified file through a secondary thread: as you may know, the only way to know the exact song's duration for MP3 files is scanning the file completely and, for very long files, the use of the LoadSound method could be quite lengthy and could temporarily freeze the user interface of the container application. This method avoids any user interface blocking and, once completed, a SoundSyncLoaded event will be fired.
Accepted audio formats are the same as seen inside the LoadSound method.
Syntax
Return value
(*) Requires Microsoft Windows Media Format modules already installed on the target PC: you can verify the presence of these modules through a call to the IsWmaAvailable method. (**) Performs sound tracks only (no video): requires Microsoft Windows Media Format modules already installed on the target PC (***) Performs sound tracks only (no video) The Windows Media Format modules can be installed using the redistribution setup package (wmfdist.exe) provided by Microsoft. Details about the integration of these modules inside your own setup package can be found on the following link of the official Microsoft web site (note that in the future this link could change due to the Microsoft site maintenance). |