avcap::DS_Tuner Class Reference

#include <avcap/windows/DS_Tuner.h>

Inheritance diagram for avcap::DS_Tuner:

Inheritance graph
[legend]

Detailed Description

Implementation of the Tuner-class for DirectShow.

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.


Constructor & Destructor Documentation

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]


Member Function Documentation

bool avcap::DS_Tuner::isRadioTuner (  )  const [inline, virtual]

Determine whether the tuner is able to receive radio frequencies.

The default implementation returns false.

Returns:
true if radio tuner, false else

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.

Returns:
true if TV tuner, false else

Reimplemented from avcap::Tuner.

int avcap::DS_Tuner::setStereo (  )  [virtual]

Set the audio mode to stereo.

The default implementation is noop and returns -1.

Returns:
0, if successful, -1 else.

Reimplemented from avcap::Tuner.

int avcap::DS_Tuner::setMono (  )  [virtual]

Set the audio mode to mono.

Default implementation is noop and return -1.

Returns:
0, if successful, -1 else.

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.

Returns:
0, if successful, -1 else.

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.

Returns:
0, if successful, -1 else.

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.

Returns:
0, if successful, -1 else.

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.

Returns:
tuner frequency

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.

Returns:
frequency step width

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.

Returns:
minimal tuner frequency

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.

Returns:
maximal tuner frequency

Reimplemented from avcap::Tuner.

const std::string avcap::DS_Tuner::getName (  )  const [inline, virtual]

Returns the tuner name.

Default implementation returns an empty string.

Returns:
tuner name

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.

Returns:
signal strength

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.

Returns:
0, if successful, -1 else.

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.

Returns:
0, if successful, -1 else.

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.

Parameters:
f The new frequency.
Returns:
0, if successful, -1 else.

Reimplemented from avcap::Tuner.


The documentation for this class was generated from the following file:
Generated on Mon Nov 30 11:10:33 2009 for avcap-0.1 by  doxygen 1.5.1