summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/coco_cas.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2013-01-11 07:32:46 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2013-01-11 07:32:46 +0000
commit0e19f641d3186cdbf51f8ca857e2b07ab95779c2 (patch)
tree234109de1123b13f217494af4b3f8efad346d5cc /src/lib/formats/coco_cas.c
parent111157ca09a9ff60fe4a9ba49173c315e94314fa (diff)
Cleanups and version bumpmame0148
Diffstat (limited to 'src/lib/formats/coco_cas.c')
-rw-r--r--src/lib/formats/coco_cas.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/formats/coco_cas.c b/src/lib/formats/coco_cas.c
index 441c8620ae1..d93b7518a2b 100644
--- a/src/lib/formats/coco_cas.c
+++ b/src/lib/formats/coco_cas.c
@@ -33,12 +33,12 @@
#include "coco_cas.h"
-#define COCO_WAVESAMPLES_HEADER (1.0)
-#define COCO_WAVESAMPLES_TRAILER (1.0)
-#define COCO_LONGSILENCE (5.0)
+#define COCO_WAVESAMPLES_HEADER (1.0)
+#define COCO_WAVESAMPLES_TRAILER (1.0)
+#define COCO_LONGSILENCE (5.0)
//some games load with only 5s, but most games need 15s
-#define ALICE32_WAVESAMPLES_HEADER (15.0)
+#define ALICE32_WAVESAMPLES_HEADER (15.0)
// PAIR is an endian-safe union useful for representing 32-bit CPU registers
union PAIR
@@ -63,8 +63,8 @@ static int synccount;
const struct CassetteModulation coco_cas_modulation =
{
CASSETTE_MODULATION_SINEWAVE,
- 600.0, 1200.0, 1500.0,
- 1500.0, 2400.0, 3000.0
+ 600.0, 1200.0, 1500.0,
+ 1500.0, 2400.0, 3000.0
};
@@ -170,7 +170,7 @@ static casserr_t cas_load(cassette_image *cassette, UINT8 silence)
casserr_t err;
UINT64 offset;
UINT64 image_size;
- UINT8 block[258]; /* 255 bytes per block + 3 (type, length, checksum) */
+ UINT8 block[258]; /* 255 bytes per block + 3 (type, length, checksum) */
int block_length = 0;
UINT8 last_blocktype;
double time_index = 0.0;
@@ -238,8 +238,8 @@ static casserr_t cas_load(cassette_image *cassette, UINT8 silence)
return err;
time_index += time_displacement;
}
- else if (synccount != 0) /* If we have multiple sync bytes in cas file, make sure they */
- { /* are passed through */
+ else if (synccount != 0) /* If we have multiple sync bytes in cas file, make sure they */
+ { /* are passed through */
/* sync data */
err = cassette_put_modulated_filler(cassette, 0, time_index, 0x55, synccount, &coco_cas_modulation, &time_displacement);
if (err)