Simple patch to address "incomplete byte" error message:

$ diff -u converter/romloader.cc.orig converter/romloader.cc
--- converter/romloader.cc.orig 2010-12-16 22:47:11.000000000 +0100
+++ converter/romloader.cc      2013-09-25 19:45:16.871797766 +0200
@@ -206,7 +206,7 @@
   }
 
   if( num_bits != 0 ) {
-    std::cout << "Error have incomplete byte (" << (char)num_bits << " 
bits)\n";
+    std::cout << "Error have incomplete byte (" << num_bits << " bits)\n";
   }
 
   rom_block new_block;

After fix apply, number of bits is printed:

$ audio2tape -r zx-rom.wav zx-rom.tzx
...
Block ended, found 108420 bytes
Type: Data
Error have incomplete byte (2 bits)
First block seconds: 226.953
Last block seconds: 324.565
Checksum:FAIL
...


** Attachment added: "fixed romloader.cc"
   
https://bugs.launchpad.net/ubuntu/+source/fuse-emulator-utils/+bug/1230405/+attachment/3840909/+files/romloader.cc

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1230405

Title:
  audio2tape & tape2wav are missing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fuse-emulator-utils/+bug/1230405/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to