Skip to content

Commit dde4fe4

Browse files
committed
Move output of length and fadelength. Update example in readme
1 parent 3914cc4 commit dde4fe4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ Name of dumper: Datschge
2929
Comments: Bramble Maze
3030
Date SPC was dumped:
3131
Emulator used to dump SPC: Unknown
32+
Length (seconds): 253
33+
Fade length (milliseconds): 10000
3234
-----------
3335
XID6 tags:
3436
-----------

src/main/java/se/anosh/spctag/TagReader.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ public void go(final CommandLine cmd) {
7373
System.out.println("File header: " + myFile.getHeader());
7474
String format = myFile.isBinaryTagFormat() ? "Binary" : "Text";
7575
System.out.println("Tag format: " + format);
76-
System.out.printf("Length (seconds): %d\n", myFile.getLengthSeconds() );
77-
System.out.printf("Fade length (milliseconds): %d\n", myFile.getFadeLengthMilliseconds());
7876
}
7977
System.out.println("Artist: " + myFile.getArtist()); // composer
8078
System.out.println("Song title: " + myFile.getSongTitle());
@@ -85,6 +83,10 @@ public void go(final CommandLine cmd) {
8583

8684
System.out.println("Date SPC was dumped: " + myFile.dateDumpWasCreated());
8785
System.out.println("Emulator used to dump SPC: " + myFile.getEmulatorUsedToCreateDump().getName());
86+
if (cmd.hasOption(VERBOSE)) {
87+
System.out.printf("Length (seconds): %d\n", myFile.getLengthSeconds() );
88+
System.out.printf("Fade length (milliseconds): %d\n", myFile.getFadeLengthMilliseconds());
89+
}
8890

8991
if (cmd.hasOption(VERBOSE) || cmd.hasOption(XID6)) {
9092
try {

0 commit comments

Comments
 (0)