home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_02_10
/
2n10052a
< prev
next >
Wrap
Text File
|
1991-06-29
|
1KB
|
64 lines
// VCR.H - VCR device driver classes
// VCR - Panasonic Selectra AG-1960 VCR class
#ifndef VCR_H
#define VCR_H
#include "Port.h"
enum CueType {Fine, Coarse};
enum VCRMode {StopMode, EjectMode, RewindMode, FFMode,
PlayFRMode, PlayFFMode, StillMode, RecordMode,
PlayMode, PowerOffMode, NoTapeMode};
struct Frame
{
int nHour;
int nMinute;
int nSecond;
int nFrame;
};
class VCR
{
private:
SerialPort *spSerialPort;
void SendCommand (Str sCommandString);
public:
VCR (int nNewPortAddress = 0x3F8); // COM1:
~VCR ();
void Stop ();
void Eject ();
void Rewind ();
void FastForward ();
void PlayFastReverse();
void PlayFastForward ();
void Still ();
void Record ();
void Play ();
void ReversePlay ();
void StepForward ();
void StepReverse ();
void PowerToggle ();
void ShuttleOn ();
void ShuttleUp ();
void ShuttleDown ();
void ForwardShuttle (int nSpeed);
void ReverseShuttle (int nSpeed);
void CueToFrame (struct Frame NewFrame);
void SetCueType (CueType ctNewCueType);
void PlayToFrame (struct Frame EndFrame);
void PlaySegment (struct Frame StartFrame, struct Frame EndFrame);
void AudioInsertToFrame (struct Frame EndFrame);
void AudioVideoInsertToFrame (struct Frame EndFrame);
void PrePlay ();
void Calibrate ();
void ClearCounter ();
void AudioSelect ();
void ResetVCR ();
struct Frame RequestFrame ();
VCRMode RequestMode ();
};
#endif VCR_H