Package libsidutils.siddatabase
Klasse SidDatabase
java.lang.Object
libsidutils.siddatabase.SidDatabase
Utility class to determine song length for tunes based on HVSC file
"DOCUMENTS/Songlengths.txt".
- Autor:
- ken
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprivate InputStreamgetInputStreamAndSetVersion(File hvscRoot) doubleGet song length of a specific song number contained in the song length line identified by MD5 checksum.
e.g.Get tune path contained in the commented line above the song length line.doublegetSongLength(SidTune tune) Get song length of the current song in seconds.doublegetTuneLength(SidTune tune) Get tune length (sum of all song length contained in the tune) in seconds.
-
Felddetails
-
SONGLENGTHS_FILE_TXT
Until version HVSC#67- Siehe auch:
-
SONGLENGTHS_FILE_MD5
Since version HVSC#68- Siehe auch:
-
version
-
database
-
random
-
-
Konstruktordetails
-
SidDatabase
- Löst aus:
IOException
-
-
Methodendetails
-
getInputStreamAndSetVersion
- Löst aus:
FileNotFoundException
-
getTuneLength
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
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
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
-
getPath
-
getLength
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 lengthsongNum- song number- Gibt zurück:
- song length of the song number
-