diff options
author | 2019-04-21 17:37:24 +0200 | |
---|---|---|
committer | 2019-04-21 17:37:24 +0200 | |
commit | ae3915fd5335ea5b00b418ae286ffd73bc447e1a (patch) | |
tree | 21ef6b4f949a582f9b25173f41facac30384a8b1 | |
parent | e517fff98cfb4b1b4bb96922f372895f877aa530 (diff) |
tzx_cas.cpp: Apply 1ms pause only on data blocks
Fix MT #07296
-rw-r--r-- | src/lib/formats/tzx_cas.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/formats/tzx_cas.cpp b/src/lib/formats/tzx_cas.cpp index ddfe21b81dc..29897dc49b4 100644 --- a/src/lib/formats/tzx_cas.cpp +++ b/src/lib/formats/tzx_cas.cpp @@ -282,11 +282,13 @@ static int tzx_cas_handle_block( int16_t **buffer, const uint8_t *bytes, int pau } } /* pause */ - int start_pause_samples = millisec_to_samplecount(1); - - tzx_output_wave(buffer, start_pause_samples); - size += start_pause_samples; + if (data_size > 0) + { + int start_pause_samples = millisec_to_samplecount(1); + tzx_output_wave(buffer, start_pause_samples); + size += start_pause_samples; + } if (pause > 0) { int rest_pause_samples = millisec_to_samplecount(pause - 1); |