Assume CDT format is the same as TZX, skip initial pause block.
This commit is contained in:
@@ -204,7 +204,7 @@ void PauseWave(unsigned int pause_ms)
|
||||
// Waits for "pause" milliseconds
|
||||
|
||||
int p;
|
||||
if ((!skippause) || (curr != (numblocks - 1)))
|
||||
if (curr && ((!skippause) || (curr != (numblocks - 1))))
|
||||
{
|
||||
p = (unsigned int)((((float)pause_ms)*freq) / 1000.0);
|
||||
PlayWave(p);
|
||||
|
||||
@@ -920,7 +920,7 @@ int user_io_file_tx(char* name, unsigned char index, char opensave, char mute)
|
||||
spi8(0xff);
|
||||
DisableFpga();
|
||||
|
||||
if (strlen(f.name) > 4 && !strcasecmp(f.name + strlen(f.name) - 4, ".tzx"))
|
||||
if (strlen(f.name) > 4 && (!strcasecmp(f.name + strlen(f.name) - 4, ".tzx") || !strcasecmp(f.name + strlen(f.name) - 4, ".cdt")))
|
||||
{
|
||||
printf("Processing TZX...\n");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user