Exemplo n.º 1
0
        private string GetNextUserRecordingName(MaoriObj word)
        {
            string result;

            FileMapper fileMapper = new FileMapper(0, word.WordSoundId);
            int index = recordedWavFiles.Count + 1;
            result = systemIO.GetAppDataDir(allUsers.getCurrentUser())
                + fileMapper.GetWordSoundName(index);
            return result;
        }
Exemplo n.º 2
0
        private List<string> GetRandomWordSoundList(string Dir, int Gender, int SoundId)
        {
            List<string> result = new List<string>();
            FileMapper files = new FileMapper(Gender, SoundId);

            foreach (string item in files.GetAllFileNames())
            {
                string proposedPath = Dir + item;
                if (File.Exists(proposedPath))
                    result.Add(proposedPath);
            }

            return result;
        }