libgig 4.6.1
Akai.h
1/*
2 libakai - C++ cross-platform akai sample disk reader
3 Copyright (C) 2002-2003 Sébastien Métrot
4
5 Linux port by Christian Schoenebeck <cuse@users.sourceforge.net> 2003-2026
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20*/
21// Akai.h
22// Info for the akai disk & file format found here:
23// http://www.abel.co.uk/~maxim/akai/akaiinfo.htm
24//
25#ifndef __akai_h__
26#define __akai_h__
27
28// for use with autoconf
29#ifdef HAVE_CONFIG_H
30# include <config.h>
31#endif
32
33#if !defined(_CARBON_) && !defined(__APPLE__) && !defined(WIN32)
34# define LINUX 1
35#endif
36
37#include <stdint.h>
38#include <string>
39#include <stdio.h>
40#include <stdlib.h>
41#include <iostream>
42#include <list>
43#include <fstream>
44#include <sys/types.h>
45#include <sys/stat.h>
46#ifndef _MSC_VER
47# include <sys/fcntl.h>
48#endif
49#if defined(_CARBON_) || defined(__APPLE__) || LINUX
50# include <sys/ioctl.h>
51# include <unistd.h>
52#elif defined(WIN32)
53# include <windows.h>
54 typedef unsigned int uint;
55#endif
56#if LINUX
57# if defined(HAVE_CONFIG_H)
58# if defined(HAVE_LINUX_CDROM_H)
59# define HAVE_LINUX_CDROM 1
60# endif
61# elif defined(__linux__) && !defined(__FreeBSD_kernel__)
62# define HAVE_LINUX_CDROM 1
63# endif
64# ifdef HAVE_LINUX_CDROM
65# include <linux/cdrom.h>
66# endif
67#endif
68
69typedef std::string String;
70typedef std::streampos streampos;
71
72class AkaiVolume;
73class AkaiPartition;
74class AkaiDisk;
75
76
77/* current state of the Akai stream */
78typedef enum {
79 akai_stream_ready = 0,
80 akai_stream_end_reached = 1,
81 akai_stream_closed = 2
82} akai_stream_state_t;
83
84/* stream position dependent to these relations */
85typedef enum {
86 akai_stream_start = 0,
87 akai_stream_curpos = 1,
88 akai_stream_end = 2
89} akai_stream_whence_t;
90
91
92/* We need to cache IO access to reduce IO system calls which else would slow
93 down things tremendously. For that we differ between the following two
94 cache sizes:
95
96 CD_FRAMESIZE for CDROM access
97 DISK_CLUSTER_SIZE for normal IO access (e.g. from hard disk)
98
99 Not yet sure if these are the optimum sizes.
100 */
101
102#ifndef CD_FRAMESIZE
103# define CD_FRAMESIZE 2048 /* frame size for Yellow Book, Form 1 */
104#endif
105
106#define DISK_CLUSTER_SIZE 61440 /* 60 kB */
107
108typedef std::string String;
109
119{
120public:
121 DiskImage(const char* path);
122 DiskImage(int disk);
123
124 bool WriteImage(const char* path);
125
126 virtual ~DiskImage();
127
128 virtual akai_stream_state_t GetState() const;
129 virtual int GetPos() const;
130 virtual int SetPos(int Where, akai_stream_whence_t Whence = akai_stream_start);
131
132 virtual int Available (uint WordSize = 1);
133 virtual int Read (void* pData, uint WordCount, uint WordSize);
134
135 void ReadInt8(uint8_t* pData, uint WordCount);
136 void ReadInt16(uint16_t* pData, uint WordCount);
137 void ReadInt32(uint32_t* pData, uint WordCount);
138 int ReadInt8(uint8_t* pData);
139 int ReadInt16(uint16_t* pData);
140 int ReadInt32(uint32_t* pData);
141 uint8_t ReadInt8();
142 uint16_t ReadInt16();
143 uint32_t ReadInt32();
144
145
146 virtual uint GetError() const
147 {
148 return 0;
149 }
150
151 /*virtual const nglChar* GetErrorStr(uint err) const
152 {
153 return _T("No Error");
154 }*/
155
156protected:
157#ifdef WIN32
158 HANDLE mFile;
159#elif defined _CARBON_ || defined(__APPLE__) || LINUX
160 int mFile;
161#endif
162 bool mRegularFile;
163 int mPos;
164 int mCluster;
165 int mClusterSize;
166 int mSize; /* in bytes */
167 /* start and end of the data track we chose (if we're reading from CDROM) */
168 int mStartFrame;
169 int mEndFrame;
170 char* mpCache;
171
172 void OpenStream(const char* path);
173 inline void swapBytes_16(void* Word);
174 inline void swapBytes_32(void* Word);
175
176private:
177 void Init();
178};
179
180
181class Resource
182{
183public:
184 Resource()
185 {
186 mRefCount = 0;
187 }
188 virtual ~Resource()
189 {
190 //NGL_ASSERT(mRefCount==0);
191 }
192 uint Acquire()
193 {
194 return mRefCount++;
195 }
196 uint Release()
197 {
198 uint res;
199 //NGL_ASSERT(mRefCount!=0);
200 mRefCount--;
201 res = mRefCount;
202 if (!mRefCount)
203 delete this;
204 return res;
205 }
206private:
207 uint mRefCount;
208};
209
210class AkaiDirEntry
211{
212public:
213 String mName;
214 uint16_t mType;
215 int mSize;
216 uint16_t mStart;
217 int mIndex;
218};
219
220// AkaiDiskElement:
221class AkaiDiskElement : public Resource
222{
223public:
224 AkaiDiskElement(uint Offset = 0)
225 {
226 mOffset = Offset;
227 }
228
229 uint GetOffset()
230 {
231 return mOffset;
232 }
233
234protected:
235 void SetOffset(uint Offset)
236 {
237 mOffset = Offset;
238 }
239
240 void AkaiToAscii(char * buffer, int length);
241 int ReadFAT(DiskImage* pDisk, AkaiPartition* pPartition, int block);
242 bool ReadDirEntry(DiskImage* pDisk, AkaiPartition* pPartition, AkaiDirEntry& rEntry, int block, int pos);
243private:
244 uint mOffset;
245};
246
247class AkaiSampleLoop
248{
249public:
250 // 4 unsigned Loop 1 marker
251 uint32_t mMarker;
252 // 2 unsigned Loop 1 fine length (65536ths)
253 uint16_t mFineLength;
254 // 4 unsigned Loop 1 coarse length (words)
255 uint32_t mCoarseLength;
256 // 2 unsigned Loop 1 time (msec. or 9999=infinite)
257 uint16_t mTime;
258private:
259 friend class AkaiSample;
260 bool Load(DiskImage* pDisk);
261};
262
263class AkaiSample : public AkaiDiskElement
264{
265public:
266 AkaiDirEntry GetDirEntry();
267 // Length Format Description
268 // --------------------------------------------------------------
269 // 1 3
270 // 1 Not important: 0 for 22050Hz, 1 for 44100Hz
271 // 1 unsigned MIDI root note (C3=60)
272 uint8_t mMidiRootNote;
273 // 12 AKAII Filename
274 String mName;
275 // 1 128
276 // 1 unsigned Number of active loops
277 uint8_t mActiveLoops;
278 // 1 unsigned char First active loop (0 for none)
279 uint8_t mFirstActiveLoop;
280 // 1 0
281 // 1 unsigned Loop mode: 0=in release 1=until release
282 // 2=none 3=play to end
283 uint8_t mLoopMode;
284 // 1 signed Cents tune -50...+50
285 int8_t mTuneCents;
286 // 1 signed Semi tune -50...+50
287 int8_t mTuneSemitones;
288 // 4 0,8,2,0
289 //
290 // 4 unsigned Number of sample words
291 uint32_t mNumberOfSamples;
292 // 4 unsigned Start marker
293 uint32_t mStartMarker;
294 // 4 unsigned End marker
295 uint32_t mEndMarker;
296 //
297 // 4 unsigned Loop 1 marker
298 // 2 unsigned Loop 1 fine length (65536ths)
299 // 4 unsigned Loop 1 coarse length (words)
300 // 2 unsigned Loop 1 time (msec. or 9999=infinite)
301 //
302 // 84 [as above] Loops 2 to 8
303 //
304 AkaiSampleLoop mLoops[8];
305 // 4 0,0,255,255
306 // 2 unsigned Sampling frequency
307 uint16_t mSamplingFrequency;
308 // 1 signed char Loop tune offset -50...+50
309 int8_t mLoopTuneOffset;
310 // 10 0,0,0...
311
312 int16_t* mpSamples;
313
314 bool LoadSampleData();
315 void ReleaseSampleData();
316 int SetPos(int Where, akai_stream_whence_t Whence = akai_stream_start);
317 int Read(void* pBuffer, uint SampleCount);
318 bool LoadHeader();
319private:
320 AkaiSample(DiskImage* pDisk, AkaiVolume* pParent, const AkaiDirEntry& DirEntry);
321 virtual ~AkaiSample();
322
323 friend class AkaiVolume;
324
325 AkaiVolume* mpParent;
326 DiskImage* mpDisk;
327 AkaiDirEntry mDirEntry;
328 bool mHeaderOK;
329 int mPos;
330 int mImageOffset; // actual position in the image where sample starts
331};
332
333class AkaiKeygroupSample : public AkaiDiskElement
334{
335public:
336 // 35-46 sample 1 name 10,10,10... AKAII character set
337 String mName;
338 // 47 low vel 0 0..127
339 uint8_t mLowLevel;
340 // 48 high vel 127 0..127
341 uint8_t mHighLevel;
342 // 49 tune cents 0 -128..127 (-50..50 cents)
343 int8_t mTuneCents;
344 // 50 tune semitones 0 -50..50
345 int8_t mTuneSemitones;
346 // 51 loudness 0 -50..+50
347 int8_t mLoudness;
348 // 52 filter 0 -50..+50
349 int8_t mFilter;
350 // 53 pan 0 -50..+50
351 int8_t mPan;
352 // 54 loop mode 0 0=AS_SAMPLE 1=LOOP_IN_REL
353 // 2=LOOP_UNTIL_REL 3=NO_LOOP
354 // 4=PLAY_TO_END
355 uint8_t mLoopMode;
356 // 55 (internal use) 255
357 // 56 (internal use) 255
358 // 57-58 (internal use) 44,1
359 //
360private:
361 friend class AkaiKeygroup;
362 bool Load(DiskImage* pDisk);
363};
364
365class AkaiEnveloppe
366{
367public:
368 // 13 env1 attack 0 0..99
369 uint8_t mAttack;
370 // 14 env1 decay 30 0..99
371 uint8_t mDecay;
372 // 15 env1 sustain 99 0..99
373 uint8_t mSustain;
374 // 16 env1 release 45 0..99
375 uint8_t mRelease;
376 // 17 env1 vel>attack 0 -50..50
377 int8_t mVelocityToAttack;
378 // 18 env1 vel>release 0 -50..50
379 int8_t mVelocityToRelease;
380 // 19 env1 offvel>release 0 -50..50
381 int8_t mOffVelocityToRelease;
382 // 20 env1 key>dec&rel 0 -50..50
383 int8_t mKeyToDecayAndRelease;
384private:
385 friend class AkaiKeygroup;
386 bool Load(DiskImage* pDisk);
387};
388
389class AkaiKeygroup
390{
391public:
392 // byte description default range/comments
393 // ---------------------------------------------------------------------------
394 // 1 keygroup ID 2
395 // 2-3 next keygroup address 44,1 300,450,600,750.. (16-bit)
396 // 4 low key 24 24..127
397 uint8_t mLowKey;
398 // 5 high key 127 24..127
399 uint8_t mHighKey;
400 // 6 tune cents 0 -128..127 (-50..50 cents)
401 int8_t mTuneCents;
402 // 7 tune semitones 0 -50..50
403 int8_t mTuneSemitones;
404 // 8 filter 99 0..99
405 uint8_t mFilter;
406 // 9 key>filter 12 0..24 semitone/oct
407 uint8_t mKeyToFilter;
408 // 10 vel>filt 0 -50..50
409 uint8_t mVelocityToFilter;
410 // 11 pres>filt 0 -50..50
411 uint8_t mPressureToFilter;
412 // 12 env2>filt 0 -50..50
413 uint8_t mEnveloppe2ToFilter;
414
415 // 13 env1 attack 0 0..99
416 // 14 env1 decay 30 0..99
417 // 15 env1 sustain 99 0..99
418 // 16 env1 release 45 0..99
419 // 17 env1 vel>attack 0 -50..50
420 // 18 env1 vel>release 0 -50..50
421 // 19 env1 offvel>release 0 -50..50
422 // 20 env1 key>dec&rel 0 -50..50
423 // 21 env2 attack 0 0..99
424 // 22 env2 decay 50 0..99
425 // 23 env2 sustain 99 0..99
426 // 24 env2 release 45 0..99
427 // 25 env2 vel>attack 0 -50..50
428 // 26 env2 vel>release 0 -50..50
429 // 27 env2 offvel>release 0 -50..50
430 // 28 env2 key>dec&rel 0 -50..50
431 AkaiEnveloppe mEnveloppes[2];
432
433 // 29 vel>env2>filter 0 -50..50
434 int8_t mVelocityToEnveloppe2ToFilter;
435 // 30 env2>pitch 0 -50..50
436 int8_t mEnveloppe2ToPitch;
437 // 31 vel zone crossfade 1 0=OFF 1=ON
438 bool mVelocityZoneCrossfade;
439 // 32 vel zones used 4
440 uint mVelocityZoneUsed;
441 // 33 (internal use) 255
442 // 34 (internal use) 255
443 //
444
445 // 35-46 sample 1 name 10,10,10... AKAII character set
446 // 47 low vel 0 0..127
447 // 48 high vel 127 0..127
448 // 49 tune cents 0 -128..127 (-50..50 cents)
449 // 50 tune semitones 0 -50..50
450 // 51 loudness 0 -50..+50
451 // 52 filter 0 -50..+50
452 // 53 pan 0 -50..+50
453 // 54 loop mode 0 0=AS_SAMPLE 1=LOOP_IN_REL
454 // 2=LOOP_UNTIL_REL 3=NO_LOOP
455 // 4=PLAY_TO_END
456 // 55 (internal use) 255
457 // 56 (internal use) 255
458 // 57-58 (internal use) 44,1
459 //
460 // 59-82 [repeat 35-58 for sample 2]
461 //
462 // 83-106 [repeat 35-58 for sample 3]
463 //
464 // 107-130 [repeat 35-58 for sample 4]
465 //
466 AkaiKeygroupSample mSamples[4];
467
468 // 131 beat detune 0 -50..50
469 int8_t mBeatDetune;
470 // 132 hold attack until loop 0 0=OFF 1=ON
471 bool mHoldAttackUntilLoop;
472 // 133-136 sample 1-4 key tracking 0 0=TRACK 1=FIXED
473 bool mSampleKeyTracking[4];
474 // 137-140 sample 1-4 aux out offset 0 0..7
475 uint8_t mSampleAuxOutOffset[4];
476 // 141-148 vel>sample start 0 -9999..9999 (16-bit signed)
477 int16_t mVelocityToSampleStart[4];
478 // 149 vel>volume offset 0 -50..50
479 int8_t mVelocityToVolumeOffset[4];
480 // 150 (not used)
481
482private:
483 friend class AkaiProgram;
484 bool Load(DiskImage* pDisk);
485};
486
491class AkaiProgram : public AkaiDiskElement
492{
493public:
494 AkaiDirEntry GetDirEntry();
495 // Samples:
496 uint ListSamples(std::list<String>& rSamples);
497 AkaiSample* GetSample(uint Index);
498 AkaiSample* GetSample(const String& rName);
499
500 // byte description default range/comments
501 // ---------------------------------------------------------------------------
502 // 1 program ID 1
503 // 2-3 first keygroup address 150,0
504 // 4-15 program name 10,10,10... AKAII character set
505 String mName;
506 // 16 MIDI program number 0 0..127
507 uint8_t mMidiProgramNumber;
508 // 17 MIDI channel 0 0..15, 255=OMNI
509 uint8_t mMidiChannel;
510 // 18 polyphony 15 1..16
511 uint8_t mPolyphony;
512 // 19 priority 1 0=LOW 1=NORM 2=HIGH 3=HOLD
513 uint8_t mPriority;
514 // 20 low key 24 24..127
515 uint8_t mLowKey;
516 // 21 high key 127 24..127
517 uint8_t mHighKey;
518 // 22 octave shift 0 -2..2
519 int8_t mOctaveShift;
520 // 23 aux output select 255 0..7, 255=OFF
521 uint8_t mAuxOutputSelect;
522 // 24 mix output level 99 0..99
523 uint8_t mMixOutputSelect;
524 // 25 mix output pan 0 -50..50
525 int8_t mMixPan;
526 // 26 volume 80 0..99
527 uint8_t mVolume;
528 // 27 vel>volume 20 -50..50
529 int8_t mVelocityToVolume;
530 // 28 key>volume 0 -50..50
531 int8_t mKeyToVolume;
532 // 29 pres>volume 0 -50..50
533 int8_t mPressureToVolume;
534 // 30 pan lfo rate 50 0..99
535 uint8_t mPanLFORate;
536 // 31 pan lfo depth 0 0..99
537 uint8_t mPanLFODepth;
538 // 32 pan lfo delay 0 0..99
539 uint8_t mPanLFODelay;
540 // 33 key>pan 0 -50..50
541 int8_t mKeyToPan;
542 // 34 lfo rate 50 0..99
543 uint8_t mLFORate;
544 // 35 lfo depth 0 0..99
545 uint8_t mLFODepth;
546 // 36 lfo delay 0 0..99
547 uint8_t mLFODelay;
548 // 37 mod>lfo depth 30 0..99
549 uint8_t mModulationToLFODepth;
550 // 38 pres>lfo depth 0 0..99
551 uint8_t mPressureToLFODepth;
552 // 39 vel>lfo depth 0 0..99
553 uint8_t mVelocityToLFODepth;
554 // 40 bend>pitch 2 0..12 semitones
555 uint8_t mBendToPitch;
556 // 41 pres>pitch 0 -12..12 semitones
557 int8_t mPressureToPitch;
558 // 42 keygroup crossfade 0 0=OFF 1=ON
559 bool mKeygroupCrossfade;
560 // 43 number of keygroups 1 1..99
561 uint8_t mNumberOfKeygroups;
562 // 44 (internal use) 0 program number
563 // 45-56 key temperament C,C#,D... 0 -25..25 cents
564 int8_t mKeyTemperament[11];
565 // 57 fx output 0 0=OFF 1=ON
566 bool mFXOutput;
567 // 58 mod>pan 0 -50..50
568 int8_t mModulationToPan;
569 // 59 stereo coherence 0 0=OFF 1=ON
570 bool mStereoCoherence;
571 // 60 lfo desync 1 0=OFF 1=ON
572 bool mLFODesync;
573 // 61 pitch law 0 0=LINEAR
574 uint8_t mPitchLaw;
575 // 62 voice re-assign 0 0=OLDEST 1=QUIETEST
576 uint8_t mVoiceReassign;
577 // 63 softped>volume 10 0..99
578 uint8_t mSoftpedToVolume;
579 // 64 softped>attack 10 0..99
580 uint8_t mSoftpedToAttack;
581 // 65 softped>filt 10 0..99
582 uint8_t mSoftpedToFilter;
583 // 66 tune cents 0 -128..127 (-50..50 cents)
584 int8_t mSoftpedToTuneCents;
585 // 67 tune semitones 0 -50..50
586 int8_t mSoftpedToTuneSemitones;
587 // 68 key>lfo rate 0 -50..50
588 int8_t mKeyToLFORate;
589 // 69 key>lfo depth 0 -50..50
590 int8_t mKeyToLFODepth;
591 // 70 key>lfo delay 0 -50..50
592 int8_t mKeyToLFODelay;
593 // 71 voice output scale 1 0=-6dB 1=0dB 2=+12dB
594 uint8_t mVoiceOutputScale;
595 // 72 stereo output scale 0 0=0dB 1=+6dB
596 uint8_t mStereoOutputScale;
597 // 73-150 (not used)
598
599 AkaiKeygroup* mpKeygroups;
600
601 bool Load();
602 AkaiVolume* GetParent()
603 {
604 return mpParent;
605 }
606
607private:
608 AkaiProgram(DiskImage* pDisk, AkaiVolume* pParent, const AkaiDirEntry& DirEntry);
609 virtual ~AkaiProgram();
610
611 friend class AkaiVolume;
612
613 std::list<AkaiSample*> mpSamples;
614 AkaiVolume* mpParent;
615 DiskImage* mpDisk;
616 AkaiDirEntry mDirEntry;
617};
618
627class AkaiVolume : public AkaiDiskElement
628{
629public:
630 AkaiDirEntry GetDirEntry();
631 // Programs:
632 uint ListPrograms(std::list<AkaiDirEntry>& rPrograms);
633 AkaiProgram* GetProgram(uint Index);
634 AkaiProgram* GetProgram(const String& rName);
635
636 // Samples:
637 uint ListSamples(std::list<AkaiDirEntry>& rSamples);
638 AkaiSample* GetSample(uint Index);
639 AkaiSample* GetSample(const String& rName);
640
641 AkaiPartition* GetParent()
642 {
643 return mpParent;
644 }
645
646 bool IsEmpty();
647private:
648 AkaiVolume(DiskImage* pDisk, AkaiPartition* pParent, const AkaiDirEntry& DirEntry);
649 virtual ~AkaiVolume();
650 uint ReadDir();
651
652 friend class AkaiPartition;
653
654 String mName;
655 std::list<AkaiProgram*> mpPrograms;
656 std::list<AkaiSample*> mpSamples;
657 DiskImage* mpDisk;
658 AkaiPartition* mpParent;
659 AkaiDirEntry mDirEntry;
660};
661
670class AkaiPartition : public AkaiDiskElement
671{
672public:
673 // Samples:
674 uint ListVolumes(std::list<AkaiDirEntry>& rVolumes);
675 AkaiVolume* GetVolume(uint Index);
676 AkaiVolume* GetVolume(const String& rName);
677
678 AkaiDisk* GetParent()
679 {
680 return mpParent;
681 }
682
683 bool IsEmpty();
684private:
685 AkaiPartition(DiskImage* pDisk, AkaiDisk* pParent);
686 virtual ~AkaiPartition();
687
688 friend class AkaiDisk;
689
690 String mName;
691 std::list<AkaiVolume*> mpVolumes;
692 AkaiDisk* mpParent;
693 DiskImage* mpDisk;
694};
695
704class AkaiDisk : public AkaiDiskElement
705{
706public:
707 AkaiDisk(DiskImage* pDisk);
708 virtual ~AkaiDisk();
709
710 // Partitions:
711 uint GetPartitionCount();
712 AkaiPartition* GetPartition(uint count);
713
714private:
715 DiskImage* mpDisk;
716 std::list<AkaiPartition*> mpPartitions;
717};
718
719#define AKAI_FILE_ENTRY_SIZE 24
720#define AKAI_DIR_ENTRY_OFFSET 0xca
721#define AKAI_DIR_ENTRY_SIZE 16
722#define AKAI_ROOT_ENTRY_OFFSET 0x0
723
724#define AKAI_PARTITION_END_MARK 0x8000
725#define AKAI_BLOCK_SIZE 0x2000
726
727#define AKAI_FAT_OFFSET 0x70a
728
729#define AKAI_MAX_FILE_ENTRIES_S1000 125 //should be 128 ??
730#define AKAI_MAX_FILE_ENTRIES_S3000 509 // should be 512 ??
731#define AKAI_MAX_DIR_ENTRIES 100
732#define AKAI_TYPE_DIR_S1000 1
733#define AKAI_TYPE_DIR_S3000 3
734
735#define AKAI_PROGRAM_ID 1
736#define AKAI_KEYGROUP_ID 2
737#define AKAI_SAMPLE_ID 3
738
739#endif // __akai_h__
Toplevel AKAI image interpreter.
Definition Akai.h:705
Encapsulates one disk partition of an AKAI disk.
Definition Akai.h:671
AKAI instrument definition.
Definition Akai.h:492
Subdivision of an AKAI disk partition.
Definition Akai.h:628
Accessing AKAI image either from file or a drive (i.e.
Definition Akai.h:119
bool WriteImage(const char *path)
Extract Akai data track and write it into a regular file.
Definition Akai.cpp:1892
virtual int Read(void *pData, uint WordCount, uint WordSize)
Returns number of successfully read words.
Definition Akai.cpp:1670
DiskImage(const char *path)
Open an image from a file.
Definition Akai.cpp:1276