Exemple #1
0
void ViStreamInput::pause()
{
	LOG("Recording paused.");
	mAudioInput->suspend();
	stopChecking();
	setState(QAudio::SuspendedState);
}
Exemple #2
0
void ViStreamInput::checkBuffer()
{
	if(mPreviousSize == mBufferDevice->size())
	{
		stopChecking();
		LOG("The audio input has stop feeding data to the buffer.", QtFatalMsg);
	}
	mPreviousSize = mBufferDevice->size();
}
Exemple #3
0
void EWAUpdatesChecker::startChecking()
{
    stopChecking();
    
    initChangeRules();
    
    m_pSite->slotDownload();
    m_pTimer->start();
}
Exemple #4
0
void EWAUpdatesChecker::setUsed( bool bUsed )
{
    m_bUsed = bUsed;
    if( m_bUsed )
    {
        startChecking();
    }
    else
    {
        stopChecking();
        initDefaultPrevMetchedValue();
        m_pSite->setPrevMatched( m_strPrevMatchedValue );
    }
}
Exemple #5
0
void ViStreamInput::stop()
{
	if(mAudioInput != NULL && mBufferDevice != NULL && state() != QAudio::StoppedState)
    {
        stopChecking();
        mAudioInput->stop();
        delete mBufferDevice;
        mBufferDevice = NULL;
        delete mAudioInput;
        mAudioInput = NULL;
        setState(QAudio::StoppedState);
		clear();
		LOG("Recording stopped.");
    }
}