You've already forked fuse-utils
mirror of
https://git.code.sf.net/p/fuse-emulator/fuse-utils
synced 2025-08-06 02:35:52 +03:00
Round out the block support for block timing, completes support for feature
request #21. Legacy-ID: 3775
This commit is contained in:
@@ -253,3 +253,4 @@
|
|||||||
20080922 converter/romloader.cc: custom timings were only initialised when stats
|
20080922 converter/romloader.cc: custom timings were only initialised when stats
|
||||||
were enabled (Fred).
|
were enabled (Fred).
|
||||||
20080922 importer/soundfile.cc: initialise frequency table to 0 (Fred).
|
20080922 importer/soundfile.cc: initialise frequency table to 0 (Fred).
|
||||||
|
20080928 tzxlist.c: add block and tape lengths to output (Fred).
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/* tzxlist.c: Produce a listing of the blocks in a .tzx file
|
/* tzxlist.c: Produce a listing of the blocks in a .tzx file
|
||||||
Copyright (c) 2001-2007 Philip Kendall, Darren Salt
|
Copyright (c) 2001-2008 Philip Kendall, Darren Salt
|
||||||
|
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
@@ -126,6 +126,7 @@ process_tape( char *filename )
|
|||||||
libspectrum_tape *tape;
|
libspectrum_tape *tape;
|
||||||
libspectrum_tape_iterator iterator;
|
libspectrum_tape_iterator iterator;
|
||||||
libspectrum_tape_block *block;
|
libspectrum_tape_block *block;
|
||||||
|
libspectrum_dword total_length = 0;
|
||||||
|
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
@@ -155,6 +156,9 @@ process_tape( char *filename )
|
|||||||
if( error ) return 1;
|
if( error ) return 1;
|
||||||
printf( "Block type 0x%02x (%s)\n", libspectrum_tape_block_type( block ),
|
printf( "Block type 0x%02x (%s)\n", libspectrum_tape_block_type( block ),
|
||||||
description );
|
description );
|
||||||
|
printf(" Block duration: %.2f sec\n",
|
||||||
|
libspectrum_tape_block_length( block )/3500000.0 );
|
||||||
|
total_length += libspectrum_tape_block_length( block );
|
||||||
|
|
||||||
switch( libspectrum_tape_block_type( block ) ) {
|
switch( libspectrum_tape_block_type( block ) ) {
|
||||||
|
|
||||||
@@ -312,6 +316,8 @@ process_tape( char *filename )
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
printf( "Total tape duration: %.2f sec\n", total_length/3500000.0 );
|
||||||
|
|
||||||
error = libspectrum_tape_free( tape );
|
error = libspectrum_tape_free( tape );
|
||||||
if( error != LIBSPECTRUM_ERROR_NONE ) return error;
|
if( error != LIBSPECTRUM_ERROR_NONE ) return error;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user