diff options
Diffstat (limited to 'src/lib/formats')
-rw-r--r-- | src/lib/formats/aquarius_caq.cpp | 4 | ||||
-rw-r--r-- | src/lib/formats/csw_cas.cpp | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/formats/aquarius_caq.cpp b/src/lib/formats/aquarius_caq.cpp index aecb883aabf..6a94b587939 100644 --- a/src/lib/formats/aquarius_caq.cpp +++ b/src/lib/formats/aquarius_caq.cpp @@ -24,8 +24,8 @@ static const cassette_image::Modulation aquarius_caq_modulation = cassette_image::MODULATION_SINEWAVE, 900.0 - 300, 900.0, 900.0 + 300, 1800.0 - 600, 1800.0, 1800.0 + 600 - - + + }; /*------------------------------------------------- diff --git a/src/lib/formats/csw_cas.cpp b/src/lib/formats/csw_cas.cpp index 3db3eb70c34..e55346cef4e 100644 --- a/src/lib/formats/csw_cas.cpp +++ b/src/lib/formats/csw_cas.cpp @@ -111,7 +111,7 @@ static cassette_image::error csw_cassette_load(cassette_image *cassette) LOG_FORMATS("Unsupported Major Version\n"); return cassette_image::error::INVALID_IMAGE; } - + /* csw data */ switch (compression) { @@ -141,13 +141,13 @@ static cassette_image::error csw_cassette_load(cassette_image *cassette) std::vector<uint8_t> gz_ptr; z_stream d_stream; int err; - + gz_ptr.resize(8); d_stream.next_in = (unsigned char *) &image_data[csw_data]; d_stream.avail_in = image_size - 0x34 - header[0x23]; d_stream.total_in = 0; - + d_stream.next_out = &gz_ptr[0]; d_stream.avail_out = 1; d_stream.total_out = 0; @@ -186,7 +186,7 @@ static cassette_image::error csw_cassette_load(cassette_image *cassette) } bit ^= 0xff; } - } + } while (err == Z_OK); if (err != Z_STREAM_END) |