traverso-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Traverso-commit] traverso/src/engine AudioDevice.cpp AudioDevice.h


From: Remon Sijrier
Subject: [Traverso-commit] traverso/src/engine AudioDevice.cpp AudioDevice.h
Date: Tue, 05 Jun 2007 16:18:15 +0000

CVSROOT:        /sources/traverso
Module name:    traverso
Changes by:     Remon Sijrier <r_sijrier>       07/06/05 16:18:14

Modified files:
        src/engine     : AudioDevice.cpp AudioDevice.h 

Log message:
        added xruncount reset function, resets every 30 seconds

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/engine/AudioDevice.cpp?cvsroot=traverso&r1=1.32&r2=1.33
http://cvs.savannah.gnu.org/viewcvs/traverso/src/engine/AudioDevice.h?cvsroot=traverso&r1=1.17&r2=1.18

Patches:
Index: AudioDevice.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/engine/AudioDevice.cpp,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -b -r1.32 -r1.33
--- AudioDevice.cpp     5 Jun 2007 13:24:56 -0000       1.32
+++ AudioDevice.cpp     5 Jun 2007 16:18:14 -0000       1.33
@@ -17,7 +17,7 @@
 along with this program; if not, write to the Free Software
 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA.
 
-$Id: AudioDevice.cpp,v 1.32 2007/06/05 13:24:56 r_sijrier Exp $
+$Id: AudioDevice.cpp,v 1.33 2007/06/05 16:18:14 r_sijrier Exp $
 */
 
 #include "AudioDevice.h"
@@ -174,6 +174,8 @@
        tsar();
        
        connect(this, SIGNAL(xrunStormDetected()), this, 
SLOT(switch_to_null_driver()));
+       connect(&m_xrunResetTimer, SIGNAL(timeout()), this, 
SLOT(reset_xrun_counter()));
+       m_xrunResetTimer.start(30000);
 }
 
 AudioDevice::~AudioDevice()

Index: AudioDevice.h
===================================================================
RCS file: /sources/traverso/traverso/src/engine/AudioDevice.h,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- AudioDevice.h       5 Jun 2007 13:10:56 -0000       1.17
+++ AudioDevice.h       5 Jun 2007 16:18:14 -0000       1.18
@@ -17,7 +17,7 @@
 along with this program; if not, write to the Free Software
 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA.
 
-$Id: AudioDevice.h,v 1.17 2007/06/05 13:10:56 r_sijrier Exp $
+$Id: AudioDevice.h,v 1.18 2007/06/05 16:18:14 r_sijrier Exp $
 */
 
 #ifndef AUDIODEVICE_H
@@ -140,6 +140,7 @@
        QHash<QByteArray, AudioBus* >           playbackBuses;
        QHash<QByteArray, AudioBus* >           captureBuses;
        QStringList                             availableDrivers;
+       QTimer                                  m_xrunResetTimer;
 #if defined (JACK_SUPPORT)
        QTimer                                  jackShutDownChecker;
        friend class JackDriver;
@@ -234,6 +235,7 @@
        void private_remove_client(Client* client);
        void audiothread_finished();
        void switch_to_null_driver();
+       void reset_xrun_counter() {m_xrunCount = 0;}
 #if defined (JACK_SUPPORT)
        void check_jack_shutdown();
 #endif




reply via email to

[Prev in Thread] Current Thread [Next in Thread]