コード例 #1
0
void S60RadioTunerControl::MTsoStereoReceptionChanged(TBool aStereo)
{
    TRACE("S60RadioTunerControl::MTsoStereoReceptionChanged" << qtThisPtr()
          << "stereo" << aStereo);
	m_isStereo = aStereo;
	emit stereoStatusChanged(aStereo);
}
コード例 #2
0
void V4LRadioControl::setStereoMode(QRadioTuner::StereoMode mode)
{
    bool stereo = true;

    if(mode == QRadioTuner::ForceMono)
        stereo = false;

    v4l2_tuner tuner;

    memset( &tuner, 0, sizeof( tuner ) );

    if ( ioctl( fd, VIDIOC_G_TUNER, &tuner ) >= 0 ) {
        if(stereo)
            tuner.audmode = V4L2_TUNER_MODE_STEREO;
        else
            tuner.audmode = V4L2_TUNER_MODE_MONO;

        if ( ioctl( fd, VIDIOC_S_TUNER, &tuner ) >= 0 ) {
            emit stereoStatusChanged(stereo);
        }
    }
}
コード例 #3
0
void QXARadioSession::CBStereoStatusChanged(bool isStereo)
{
    emit stereoStatusChanged(isStereo);
}