From 2bf72dad442ae2eed8617bdc7588c01e9eb124f7 Mon Sep 17 00:00:00 2001 From: Robbbert Date: Thu, 13 Feb 2014 13:28:28 +0000 Subject: [PATCH] (MESS) apf : added back APT format once again. Note that many APT files are actually APW format (still to be done). --- src/lib/formats/apf_apt.c | 111 ++++++++++++++++++++++++++++++++------ 1 file changed, 95 insertions(+), 16 deletions(-) diff --git a/src/lib/formats/apf_apt.c b/src/lib/formats/apf_apt.c index 5cbea14195b..5b31bbd1980 100644 --- a/src/lib/formats/apf_apt.c +++ b/src/lib/formats/apf_apt.c @@ -71,7 +71,40 @@ static int apf_output_byte(INT16 *buffer, int sample_pos, UINT8 byte) return samples; } -static int apf_handle_cassette(INT16 *buffer, const UINT8 *bytes) +static int apf_apt_handle_cassette(INT16 *buffer, const UINT8 *bytes) +{ + UINT32 sample_count = 0; + UINT32 i; + UINT8 cksm = 0; + UINT32 temp = 0; + + // silence + sample_count += apf_put_samples(buffer, 0, 12000, 0); + + for (i=0; i