equal
deleted
inserted
replaced
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) |