Assume CDT format is the same as TZX, skip initial pause block.

This commit is contained in:
sorgelig
2018-08-10 11:34:48 +08:00
parent 33712136f8
commit eca3eb8c78
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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");