Beispiel #1
0
 /// <summary>
 /// Create song objects from a set of RTTL string in a file
 /// </summary>
 /// <param name="filename">Name of the file with the RTTL encoded strings</param>
 protected void BuildRttlResource(string filename)
 {
     // Read the content of the resource manifest and build the corresponding resources
     using (TextReader reader = new StreamReader(SdMountPoint + @"\" + filename)) {
         string rttlData;
         while ((rttlData = reader.ReadLine()).Length != 0)
         {
             var song = new Sound.RttlSong(rttlData);
             RTTLSongs.Add(song.Name, song);
         }
     }
 }
 /// <summary>
 /// Create song objects from a set of RTTL string in a file
 /// </summary>
 /// <param name="filename">Name of the file with the RTTL encoded strings</param>
 protected void BuildRttlResource(string filename) {
     // Read the content of the resource manifest and build the corresponding resources
     using (TextReader reader = new StreamReader(Path + @"\" + filename)) {
         string rttlData;
         while ((rttlData = reader.ReadLine()).Length != 0) {
             var song = new Sound.RttlSong(rttlData);
             RTTLSongs.Add(song.Name, song);
         }
     }
 }