1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-23 05:29:23 +00:00

Update TapeUEF.cpp

Corrected chunk for which _tone_length is used, definition of a carrier tone chunk.
This commit is contained in:
Thomas Harte 2016-01-19 18:59:10 -05:00
parent 956b90e203
commit 832797182f

View File

@ -75,7 +75,7 @@ Storage::Tape::Pulse Storage::UEF::get_next_pulse()
case 0x0110:
next_pulse.type = (_bit_position&1) ? Pulse::High : Pulse::Low;
next_pulse.length.length = 2;
next_pulse.length.length = 1;
_bit_position ^= 1;
if(!_bit_position) _chunk_position++;
@ -151,7 +151,7 @@ bool Storage::UEF::chunk_is_finished()
{
case 0x0100: return (_chunk_position / 10) == _chunk_length;
case 0x0102: return (_chunk_position / 8) == _chunk_length;
case 0x0111: return _chunk_position == _tone_length;
case 0x0110: return _chunk_position == _tone_length;
case 0x0112:
case 0x0116: return _chunk_position ? true : false;