From 4ca85d8d87c829fc764215af921337ffc67ade5e Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Wed, 22 Jan 2014 22:03:56 +0100 Subject: [PATCH] AudioJack: replaced old Uint32 type --- src/core/audio/AudioJack.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/core/audio/AudioJack.cpp b/src/core/audio/AudioJack.cpp index 24ffdf300..eef7dafaa 100644 --- a/src/core/audio/AudioJack.cpp +++ b/src/core/audio/AudioJack.cpp @@ -1,7 +1,7 @@ /* - * AudioJack.cpp - support for JACK-transport + * AudioJack.cpp - support for JACK transport * - * Copyright (c) 2005-2009 Tobias Doerffel + * Copyright (c) 2005-2014 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -344,8 +344,7 @@ int AudioJack::processCallback( jack_nframes_t _nframes, void * _udata ) } #ifdef AUDIO_PORT_SUPPORT - const Uint32 frames = qMin( _nframes, - mixer()->framesPerPeriod() ); + const int frames = qMin( _nframes, mixer()->framesPerPeriod() ); for( jackPortMap::iterator it = m_portMap.begin(); it != m_portMap.end(); ++it ) { @@ -359,7 +358,7 @@ int AudioJack::processCallback( jack_nframes_t _nframes, void * _udata ) (jack_default_audio_sample_t *) jack_port_get_buffer( it.data().ports[ch], _nframes ); - for( Uint32 frame = 0; frame < frames; ++frame ) + for( int frame = 0; frame < frames; ++frame ) { buf[frame] = it.key()->firstBuffer()[frame][ch]; }