void ViStreamInput::pause() { LOG("Recording paused."); mAudioInput->suspend(); stopChecking(); setState(QAudio::SuspendedState); }
void ViStreamInput::checkBuffer() { if(mPreviousSize == mBufferDevice->size()) { stopChecking(); LOG("The audio input has stop feeding data to the buffer.", QtFatalMsg); } mPreviousSize = mBufferDevice->size(); }
void EWAUpdatesChecker::startChecking() { stopChecking(); initChangeRules(); m_pSite->slotDownload(); m_pTimer->start(); }
void EWAUpdatesChecker::setUsed( bool bUsed ) { m_bUsed = bUsed; if( m_bUsed ) { startChecking(); } else { stopChecking(); initDefaultPrevMetchedValue(); m_pSite->setPrevMatched( m_strPrevMatchedValue ); } }
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."); } }