diff options
author | 2018-09-16 15:56:20 +0200 | |
---|---|---|
committer | 2018-09-16 15:56:20 +0200 | |
commit | cdb4ae2fab56a624bf8e2ea59f19a57f11ff1109 (patch) | |
tree | e777157fe3d830cc044e1a449ebfcfcce240672a /src/lib/formats/tzx_cas.cpp | |
parent | 5b7629348cd29c33fb7bec68bf442a3675a417eb (diff) | |
parent | 8be6a48629b5688adbe9d8162a324ff44b5a2669 (diff) |
Merge branch 'master' of https://github.com/mamedev/mame
Diffstat (limited to 'src/lib/formats/tzx_cas.cpp')
-rw-r--r-- | src/lib/formats/tzx_cas.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/formats/tzx_cas.cpp b/src/lib/formats/tzx_cas.cpp index d950419361e..fe12640e773 100644 --- a/src/lib/formats/tzx_cas.cpp +++ b/src/lib/formats/tzx_cas.cpp @@ -282,13 +282,15 @@ 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 (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; + wave_data = WAVE_LOW; tzx_output_wave(buffer, rest_pause_samples); size += rest_pause_samples; |