src/multimedia/audio/qaudioinput_alsa_p.cpp
branchRCL_3
changeset 4 3b1da2848fc7
parent 3 41300fa6a67c
child 7 3f74d0d4af4c
equal deleted inserted replaced
3:41300fa6a67c 4:3b1da2848fc7
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtMultimedia module of the Qt Toolkit.
     7 ** This file is part of the QtMultimedia module of the Qt Toolkit.
     8 **
     8 **
   532             bytesAvailable = buffer_size;
   532             bytesAvailable = buffer_size;
   533         }
   533         }
   534         resuming = true;
   534         resuming = true;
   535         deviceState = QAudio::ActiveState;
   535         deviceState = QAudio::ActiveState;
   536         int chunks = buffer_size/period_size;
   536         int chunks = buffer_size/period_size;
   537         timer->start(buffer_time*chunks/2000);
   537         timer->start(period_time*chunks/2000);
   538         emit stateChanged(deviceState);
   538         emit stateChanged(deviceState);
   539     }
   539     }
   540 }
   540 }
   541 
   541 
   542 void QAudioInputPrivate::setBufferSize(int value)
   542 void QAudioInputPrivate::setBufferSize(int value)