speed optimization

This commit is contained in:
Volker Fischer 2014-01-03 08:56:31 +00:00
parent 6e49e4e92c
commit 30f285a18e
3 changed files with 7 additions and 7 deletions

View File

@ -226,7 +226,7 @@ int CSound::Init ( const int iNewPrefMonoBufferSize )
void CSound::processInput ( SLAndroidSimpleBufferQueueItf bufferQueue,
void* instance )
{
CSound* pSound = reinterpret_cast<CSound*> ( instance );
CSound* pSound = static_cast<CSound*> ( instance );
// only process if we are running
if ( !pSound->bRun )
@ -248,7 +248,7 @@ void CSound::processInput ( SLAndroidSimpleBufferQueueItf bufferQueue,
void CSound::processOutput ( SLAndroidSimpleBufferQueueItf bufferQueue,
void* instance )
{
CSound* pSound = reinterpret_cast<CSound*> ( instance );
CSound* pSound = static_cast<CSound*> ( instance );
// only process if we are running
if ( !pSound->bRun )

View File

@ -197,7 +197,7 @@ int CSound::Init ( const int /* iNewPrefMonoBufferSize */ )
// JACK callbacks --------------------------------------------------------------
int CSound::process ( jack_nframes_t nframes, void* arg )
{
CSound* pSound = reinterpret_cast<CSound*> ( arg );
CSound* pSound = static_cast<CSound*> ( arg );
int i;
if ( pSound->IsRunning() )
@ -267,7 +267,7 @@ int CSound::process ( jack_nframes_t nframes, void* arg )
int CSound::bufferSizeCallback ( jack_nframes_t, void *arg )
{
CSound* pSound = reinterpret_cast<CSound*> ( arg );
CSound* pSound = static_cast<CSound*> ( arg );
pSound->EmitReinitRequestSignal ( RS_ONLY_RESTART_AND_INIT );

View File

@ -491,7 +491,7 @@ OSStatus CSound::deviceNotification ( AudioDeviceID,
AudioDevicePropertyID inPropertyID,
void* inRefCon )
{
CSound* pSound = reinterpret_cast<CSound*> ( inRefCon );
CSound* pSound = static_cast<CSound*> ( inRefCon );
if ( inPropertyID == kAudioDeviceProcessorOverload )
{
@ -511,7 +511,7 @@ OSStatus CSound::processInput ( void* inRefCon,
UInt32 inNumberFrames,
AudioBufferList* )
{
CSound* pSound = reinterpret_cast<CSound*> ( inRefCon );
CSound* pSound = static_cast<CSound*> ( inRefCon );
QMutexLocker locker ( &pSound->Mutex );
@ -536,7 +536,7 @@ OSStatus CSound::processOutput ( void* inRefCon,
UInt32,
AudioBufferList* ioData )
{
CSound* pSound = reinterpret_cast<CSound*> ( inRefCon );
CSound* pSound = static_cast<CSound*> ( inRefCon );
QMutexLocker locker ( &pSound->Mutex );