diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-10-04 15:11:15 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-10-04 15:11:15 -0400 |
commit | 4178db5f632721eefb58c42d684fc10f8f4fb9da (patch) | |
tree | a549de293b1a4dd6b5c3f5070f44f95e5e829f46 /libs/backends/wavesaudio/wavesapi/devicemanager/WCMRNativeAudio.cpp | |
parent | 4dc63966f0872efe768dad61eb9b8785d06b92d1 (diff) |
globally remove all trailing whitespace from .cpp and .hpp files missed by previous commit
Diffstat (limited to 'libs/backends/wavesaudio/wavesapi/devicemanager/WCMRNativeAudio.cpp')
-rw-r--r-- | libs/backends/wavesaudio/wavesapi/devicemanager/WCMRNativeAudio.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRNativeAudio.cpp b/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRNativeAudio.cpp index 2e0490b02e..0bce97423c 100644 --- a/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRNativeAudio.cpp +++ b/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRNativeAudio.cpp @@ -30,8 +30,8 @@ //! the applications. //! //! \param pManager : The managing device manager - simply passed on to the base class. -//! -//! +//! +//! //********************************************************************************************** WCMRNativeAudioNoneDevice::WCMRNativeAudioNoneDevice (WCMRAudioDeviceManager *pManager) : WCMRNativeAudioDevice (pManager, false /*useMultiThreading*/) @@ -155,7 +155,7 @@ WTErr WCMRNativeAudioNoneDevice::SetStreaming (bool newState) std::cerr << "WCMRNativeAudioNoneDevice::SetStreaming (): pthread_attr_init () failed!" << std::endl; return eGenericErr; } - + if (pthread_attr_setstacksize (&attributes, stack_size)) { std::cerr << "WCMRNativeAudioNoneDevice::SetStreaming (): pthread_attr_setstacksize () failed!" << std::endl; return eGenericErr; @@ -203,13 +203,13 @@ void WCMRNativeAudioNoneDevice::_SilenceThread() (const float*)theInpBuffers, _m_outputBuffer, buffer_size, - 0, + 0, 0 }; audioCallbackData.acdCycleStartTimeNanos =__get_time_nanos(); - // VERY ROUGH IMPLEMENTATION: + // VERY ROUGH IMPLEMENTATION: while(Streaming()) { uint64_t cycleEndTimeNanos = audioCallbackData.acdCycleStartTimeNanos + cyclePeriodNanos; @@ -236,13 +236,13 @@ void* WCMRNativeAudioNoneDevice::__SilenceThread(void *This) #if defined(PLATFORM_WINDOWS) void WCMRNativeAudioNoneDevice::_usleep(uint64_t duration_usec) -{ - LARGE_INTEGER ft; +{ + LARGE_INTEGER ft; ft.QuadPart = -(10*duration_usec); // Convert to 100 nanosecond interval, negative value indicates relative time SetWaitableTimer(_waitableTimerForUsleep, &ft, 0, NULL, NULL, 0); - WaitForSingleObject(_waitableTimerForUsleep, INFINITE); + WaitForSingleObject(_waitableTimerForUsleep, INFINITE); } #endif @@ -254,9 +254,9 @@ WCMRNativeAudioNoneDevice::__get_time_nanos () // the API should be a part of WCMRCoreAudioDeviceManager to give a chance of being tied to the // audio device transport timeß. return AudioConvertHostTimeToNanos (AudioGetCurrentHostTime ()); - + #elif PLATFORM_WINDOWS - + LARGE_INTEGER Frequency, Count ; QueryPerformanceFrequency (&Frequency) ; |