mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-02 02:49:28 +00:00
Okay, so this file format wasn't what I hoped it was. It's another hack. Lots of work to do.
This commit is contained in:
parent
7613755f94
commit
b180f04c87
@ -49,6 +49,10 @@ std::shared_ptr<Track> OricMFMDSK::get_track_at_position(unsigned int head, unsi
|
|||||||
}
|
}
|
||||||
fseek(file_, (offset * 6400) + 256, SEEK_SET);
|
fseek(file_, (offset * 6400) + 256, SEEK_SET);
|
||||||
|
|
||||||
|
// TODO: upon review, the file format actually seems to omit clock bits. So it's not an MFM capture.
|
||||||
|
// A consumer must contextually guess when an FB, FC, etc is meant to be a control mark. So turfing
|
||||||
|
// the data over directly as below isn't correct.
|
||||||
|
|
||||||
PCMSegment segment;
|
PCMSegment segment;
|
||||||
segment.number_of_bits = 6250*8;
|
segment.number_of_bits = 6250*8;
|
||||||
segment.data.resize(6250);
|
segment.data.resize(6250);
|
||||||
|
@ -16,7 +16,7 @@ namespace Storage {
|
|||||||
namespace Disk {
|
namespace Disk {
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
Provies a @c Disk containing an Oric MFM-stype disk image — an MFM bit stream.
|
Provies a @c Disk containing an Oric MFM-stype disk image — a stream of the MFM data bits with clocks omitted.
|
||||||
*/
|
*/
|
||||||
class OricMFMDSK: public Disk, public Storage::FileHolder {
|
class OricMFMDSK: public Disk, public Storage::FileHolder {
|
||||||
public:
|
public:
|
||||||
|
Loading…
Reference in New Issue
Block a user