summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author R. Belmont <rb6502@users.noreply.github.com>2019-06-17 11:24:44 -0400
committer GitHub <noreply@github.com>2019-06-17 11:24:44 -0400
commit2aef507d9a7788a7882721c4f9663778b975c18a (patch)
tree6981e8fe2190f01d48ce797fd1f6ba376ba3fec9
parent97de703617711aeaed6ec8a14213000c47d9ec06 (diff)
parent5d0ce0a64429b2a9ae3220fa3c08e1043a6be2cf (diff)
Merge pull request #5255 from DavidHaywood/160619
revert tzx_cas changes from 0.202, they break things
-rw-r--r--src/lib/formats/tzx_cas.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/formats/tzx_cas.cpp b/src/lib/formats/tzx_cas.cpp
index 29897dc49b4..d950419361e 100644
--- a/src/lib/formats/tzx_cas.cpp
+++ b/src/lib/formats/tzx_cas.cpp
@@ -282,17 +282,13 @@ static int tzx_cas_handle_block( int16_t **buffer, const uint8_t *bytes, int pau
}
}
/* pause */
- if (data_size > 0)
+ if (pause > 0)
{
int start_pause_samples = millisec_to_samplecount(1);
+ int rest_pause_samples = millisec_to_samplecount(pause - 1);
tzx_output_wave(buffer, start_pause_samples);
size += start_pause_samples;
- }
- if (pause > 0)
- {
- int rest_pause_samples = millisec_to_samplecount(pause - 1);
-
wave_data = WAVE_LOW;
tzx_output_wave(buffer, rest_pause_samples);
size += rest_pause_samples;