4 #include <lib/base/ebase.h>
17 cfYPbPr
// "Component"
28 static eAVSwitch
*instance
;
29 int volume
, VCRVolume
, mute
, useOst
, audioChannel
;
33 eAVAspectRatio aspect
;
34 eAVColorFormat colorformat
;
36 int setVolume(int vol
); // 0..65535
37 void muteAvsAudio(bool);
38 void muteOstAudio(bool);
39 bool loadScartConfig();
41 enum {NOKIA
, SAGEM
, PHILIPS
} Type
;
49 Signal2
<void, int, int> volumeChanged
;
51 static eAVSwitch
*getInstance();
52 int getVolume() { return volume
; }
53 int getMute() { return mute
; }
55 void sendVolumeChanged();
56 void reloadSettings();
59 * \brief Changes the volume.
61 * \param abs What to change:
62 * \arg \c 0 Volume, relative
63 * \arg \c 1 Volume, absolute
64 * \param vol The volume/muteflag to set. In case of volume, 0 means max and 63 means min.
66 void changeVolume(int abs
, int vol
);
68 int setTVPin8(int vol
);
69 int setColorFormat(eAVColorFormat cf
);
70 int setAspectRatio(eAVAspectRatio as
);
71 void setVSystem(eVSystem system
);
72 eVSystem
getVSystem() { return system
; }
73 int setActive(int active
);
74 int setInput(int v
); // 0: dbox, 1: vcr
75 int getInput() { return input
; }
76 void selectAudioChannel( int chan
); // 0 MonoLeft, 1 Stereo, 2 MonoRight
77 int getAudioChannel() const { return audioChannel
; }
78 void changeVCRVolume(int abs
, int vol
);
80 void setVideoFormat( int );
83 class eAVSwitchNokia
: public eAVSwitch
105 class eAVSwitchPhilips
: public eAVSwitch
127 class eAVSwitchSagem
: public eAVSwitch