#include <avcap/windows/DS_Tuner.h>
Inheritance diagram for avcap::DS_Tuner:
This implementation uses the PROPSETID_TUNER property-set which is defined in the library kstvtuner.ax which can not be linked with gcc. It thus can not be used under mingw, but only if build with Visual-C++. So the mingw-build library misses this tuner-implentation.
There are only three states of signal strength: signal present, signal not present, signal not determined. Because of this limitation the method getAFCValue() is not implemented.
Public Member Functions | |
DS_Tuner (DS_DeviceDescriptor *dd, int index, const std::string &name, int type, int caps, unsigned int high, unsigned int low) | |
virtual | ~DS_Tuner () |
bool | isRadioTuner () const |
Determine whether the tuner is able to receive radio frequencies. | |
bool | isTVTuner () const |
Determine whether the tuner is able to receive TV frequencies. | |
int | setStereo () |
Set the audio mode to stereo. | |
int | setMono () |
Set the audio mode to mono. | |
int | setSAP () |
Set the audio mode to secondary audio program (SAP). | |
int | setLang1 () |
Set the audio mode to language 1. | |
int | setLang2 () |
Set the audio mode to language 2. | |
double | getFreq () const |
Returns the current frequency in MHz. | |
double | getFreqStep () const |
Returns the step with in which the frequency can be increased or decreased. | |
double | getMinFreq () const |
Returns the minimum possible frequency in MHz which can be applied to the tuner. | |
double | getMaxFreq () const |
Returns the maximum possible frequency in MHz which can be applied to the tuner. | |
const std::string | getName () const |
Returns the tuner name. | |
int | getSignalStrength () const |
Return the strength of the signal. | |
int | increaseFreq () |
Increase the frequency a step corresponding to getFreqStep(). | |
int | decreaseFreq () |
Decrease the frequency a step corresponding to getFreqStep(). | |
int | setFreq (double f) |
Set the new frequency. The frequency is given in MHz. |
avcap::DS_Tuner::DS_Tuner | ( | DS_DeviceDescriptor * | dd, | |
int | index, | |||
const std::string & | name, | |||
int | type, | |||
int | caps, | |||
unsigned int | high, | |||
unsigned int | low | |||
) |
virtual avcap::DS_Tuner::~DS_Tuner | ( | ) | [virtual] |
bool avcap::DS_Tuner::isRadioTuner | ( | ) | const [inline, virtual] |
Determine whether the tuner is able to receive radio frequencies.
The default implementation returns false.
Reimplemented from avcap::Tuner.
bool avcap::DS_Tuner::isTVTuner | ( | ) | const [inline, virtual] |
Determine whether the tuner is able to receive TV frequencies.
The default implementation returns false.
Reimplemented from avcap::Tuner.
int avcap::DS_Tuner::setStereo | ( | ) | [virtual] |
Set the audio mode to stereo.
The default implementation is noop and returns -1.
Reimplemented from avcap::Tuner.
int avcap::DS_Tuner::setMono | ( | ) | [virtual] |
Set the audio mode to mono.
Default implementation is noop and return -1.
Reimplemented from avcap::Tuner.
int avcap::DS_Tuner::setSAP | ( | ) | [virtual] |
Set the audio mode to secondary audio program (SAP).
The default implementation is noop and returns -1.
Reimplemented from avcap::Tuner.
int avcap::DS_Tuner::setLang1 | ( | ) | [virtual] |
Set the audio mode to language 1.
The default implementation is noop and returns -1.
Reimplemented from avcap::Tuner.
int avcap::DS_Tuner::setLang2 | ( | ) | [virtual] |
Set the audio mode to language 2.
The default implementation is noop and returns -1.
Reimplemented from avcap::Tuner.
double avcap::DS_Tuner::getFreq | ( | ) | const [virtual] |
Returns the current frequency in MHz.
The default implementation is noop and returns -1.
Reimplemented from avcap::Tuner.
double avcap::DS_Tuner::getFreqStep | ( | ) | const [inline, virtual] |
Returns the step with in which the frequency can be increased or decreased.
The default implementation is noop and returns -1.
Reimplemented from avcap::Tuner.
double avcap::DS_Tuner::getMinFreq | ( | ) | const [inline, virtual] |
Returns the minimum possible frequency in MHz which can be applied to the tuner.
The default implementation is noop and returns -1.
Reimplemented from avcap::Tuner.
double avcap::DS_Tuner::getMaxFreq | ( | ) | const [inline, virtual] |
Returns the maximum possible frequency in MHz which can be applied to the tuner.
The default implementation is noop and returns -1.
Reimplemented from avcap::Tuner.
const std::string avcap::DS_Tuner::getName | ( | ) | const [inline, virtual] |
Returns the tuner name.
Default implementation returns an empty string.
Reimplemented from avcap::Tuner.
int avcap::DS_Tuner::getSignalStrength | ( | ) | const [virtual] |
Return the strength of the signal.
The default implementation is noop and returns -1.
Reimplemented from avcap::Tuner.
int avcap::DS_Tuner::increaseFreq | ( | ) | [virtual] |
Increase the frequency a step corresponding to getFreqStep().
The default implementation is noop and returns -1.
Reimplemented from avcap::Tuner.
int avcap::DS_Tuner::decreaseFreq | ( | ) | [virtual] |
Decrease the frequency a step corresponding to getFreqStep().
The default implementation is noop and returns -1.
Reimplemented from avcap::Tuner.
int avcap::DS_Tuner::setFreq | ( | double | f | ) | [virtual] |
Set the new frequency. The frequency is given in MHz.
The default implementation is noop and returns -1.
f | The new frequency. |
Reimplemented from avcap::Tuner.