Fix for no sound output under Linux

This commit is contained in:
Levitator1 2015-04-28 11:35:53 -04:00 committed by Daniel Buckmaster
parent eb0351139e
commit f3199b04e4
2 changed files with 9 additions and 4 deletions

View file

@ -42,7 +42,8 @@ inline void dFetchAndAdd( volatile U32& ref, U32 val )
#if defined(TORQUE_OS_PS3)
cellAtomicAdd32( (std::uint32_t *)&ref, val );
#elif !defined(TORQUE_OS_MAC)
__sync_fetch_and_add( ( volatile long* ) &ref, val );
//__sync_fetch_and_add( ( volatile long* ) &ref, val );
__sync_fetch_and_add(&ref, val );
#else
OSAtomicAdd32( val, (int32_t* ) &ref);
#endif
@ -53,7 +54,8 @@ inline void dFetchAndAdd( volatile S32& ref, S32 val )
#if defined(TORQUE_OS_PS3)
cellAtomicAdd32( (std::uint32_t *)&ref, val );
#elif !defined(TORQUE_OS_MAC)
__sync_fetch_and_add( ( volatile long* ) &ref, val );
//__sync_fetch_and_add( ( volatile long* ) &ref, val );
__sync_fetch_and_add( &ref, val );
#else
OSAtomicAdd32( val, (int32_t* ) &ref);
#endif