summaryrefslogtreecommitdiff
path: root/str-util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'str-util.cpp')
-rw-r--r--str-util.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/str-util.cpp b/str-util.cpp
index b1a2f2d..6a5b5bf 100644
--- a/str-util.cpp
+++ b/str-util.cpp
@@ -70,6 +70,7 @@ void process_one_sector(FILE * f) {
fread(sector, 2336, 1, f);
h = (STR_Header *) ((Byte *) sector + 8);
+ printm(M_INFO, "SubHeader: FN = %x, CN = %x, SM = %x, CI = %x: ", sector[0], sector[1], sector[2], sector[3]);
/*
printm(M_BARE, "SubHeader FN : %x\n", sector[0]);
printm(M_BARE, "SubHeader CN : %x\n", sector[1]);
@@ -77,8 +78,8 @@ void process_one_sector(FILE * f) {
printm(M_BARE, "SubHeader CI : %x\n", sector[3]);
*/
if ((sector[2] == 0x48) || (sector[2] == 0x42)) {
-/* printm(M_BARE, "Video sector\n");
- printm(M_BARE, "Status : %04x\n", h->StSTATUS);
+ printm(M_BARE, "Video sector\n");
+/* printm(M_BARE, "Status : %04x\n", h->StSTATUS);
printm(M_BARE, "Type : %04x\n", h->StTYPE);
printm(M_BARE, "Sector Offset: %i\n", h->StSECTOR_OFFSET);
printm(M_BARE, "Sector Size : %i\n", h->StSECTOR_SIZE);
@@ -130,8 +131,8 @@ void process_one_sector(FILE * f) {
int locked = 0;
SoundSector * buffer = (SoundSector *) sector;
-/* printm(M_BARE, "Audio sector\n");
- printm(M_BARE, "Frequency: %i\n", xahalfhz(buffer) ? 18900 : 37800);
+ printm(M_BARE, "Audio sector\n");
+/* printm(M_BARE, "Frequency: %i\n", xahalfhz(buffer) ? 18900 : 37800);
printm(M_BARE, "Channels : %s\n", xastereo(buffer) ? "stereo" : "mono"); */
// fwrite(sector + 8, 1, 2324, stdout);
@@ -177,7 +178,7 @@ void process_one_sector(FILE * f) {
saveXaDecode(xachannel(buffer));
} else {
-// printm(M_BARE, "Unknow sector\n");
+ printm(M_BARE, "Unknow sector\n");
}
// printm(M_BARE, "---------------------------------\n\n");
}