public bool HasClipPlayedPreviously(AudioClipType clipType)
    {
#if ENABLE_WINMD_SUPPORT
        var clipName = clipType.ToString();

        return(ApplicationData.Current.LocalSettings.Values.ContainsKey(clipName));
#else
        throw new NotImplementedException();
#endif
    }
    public bool PlayClipOnceOnly(AudioClipType clipType)
    {
#if ENABLE_WINMD_SUPPORT
        bool play = !this.HasClipPlayedPreviously(clipType);

        if (play)
        {
            var clipName = clipType.ToString();
            ApplicationData.Current.LocalSettings.Values[clipName] = true;
            this.PlayClip(clipType);
        }
        return(play);
#else
        throw new NotImplementedException();
#endif
    }
Exemple #3
0
 public AudioClipConfig GetClip(AudioClipType type)
 {
     return(ClipsDictionary[type.ToString()]);
 }