コード例 #1
0
ファイル: AudioUtils.cs プロジェクト: g360230/quran-phone
        public static string GetServerPathForAyah(QuranAyah ayah, ReciterItem reciter)
        {
            string fileName;
            if (reciter.IsGapless)
                fileName = string.Format(reciter.GetFilePattern(), ayah.Surah);
            else
                fileName = string.Format(reciter.GetFilePattern(), ayah.Surah, ayah.Ayah);

            return PathHelper.Combine(reciter.ServerUrl, fileName);
        }