Klasse SidDatabase

java.lang.Object
libsidutils.siddatabase.SidDatabase

public class SidDatabase extends Object
Utility class to determine song length for tunes based on HVSC file "DOCUMENTS/Songlengths.txt".
Autor:
ken
  • Felddetails

  • Konstruktordetails

  • Methodendetails

    • getInputStreamAndSetVersion

      private InputStream getInputStreamAndSetVersion(File hvscRoot) throws FileNotFoundException
      Löst aus:
      FileNotFoundException
    • getTuneLength

      public double getTuneLength(SidTune tune)
      Get tune length (sum of all song length contained in the tune) in seconds.
      Parameter:
      tune - tune to get the length for
      Gibt zurück:
      tune length in seconds
    • getSongLength

      public double getSongLength(SidTune tune)
      Get song length of the current song in seconds.
      Parameter:
      tune - tune to determine the current song
      Gibt zurück:
      song length of the current song of the tune
    • getPath

      public String getPath(SidTune tune)
      Get tune path contained in the commented line above the song length line.
      e.g. "; /DEMOS/0-9/2_Hours_NOT_Enough.sid" followed by
      "539be0485ad1fb958770fb9f069ae8c8=0:59"
      Parameter:
      tune - MD5 checksum of the tune is used to identify the path
      Gibt zurück:
      path of the tune
    • getRandomPath

      public String getRandomPath()
    • getPath

      public String getPath(String md5Comment)
    • getLength

      public double getLength(String md5, int songNum)
      Get song length of a specific song number contained in the song length line identified by MD5 checksum.
      e.g. "b67e3121c8d771f3f06020b47232fc80=0:24 0:28 1:03 0:22 1:22 0:22" for song number 3.
      Parameter:
      md5 - MD5 checksum to get the song length
      songNum - song number
      Gibt zurück:
      song length of the song number