/// <summary> /// Prechargement des fichiers son /// </summary> /// <param name="name"></param> /// <param name="channelCount"></param> /// <returns></returns> private async Task PreloadSoundAsync(string name, int channelCount) { StorageFolder storageFolder = ApplicationData.Current.LocalFolder; var folder = (StorageFolder)await storageFolder.TryGetItemAsync("Files"); var file = await folder.GetFileAsync(name); await audioPlayer.AddSoundAsync(name, file, channelCount); }