diff options
author | Robin Gareus <robin@gareus.org> | 2015-10-05 16:17:49 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-10-05 16:17:49 +0200 |
commit | 22b07e0233a29d9633ffa825a79503befaf2e16e (patch) | |
tree | 1d8b06056f8e12197158f5d906319767d3dedda5 /libs/backends/wavesaudio/wavesapi/devicemanager/WCMRNativeAudio.cpp | |
parent | e11ba7b79d68bc1070b170236c22123966d7bcc3 (diff) |
NOOP, remove trailing tabs/whitespace.
Diffstat (limited to 'libs/backends/wavesaudio/wavesapi/devicemanager/WCMRNativeAudio.cpp')
-rw-r--r-- | libs/backends/wavesaudio/wavesapi/devicemanager/WCMRNativeAudio.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRNativeAudio.cpp b/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRNativeAudio.cpp index 0bce97423c..bf5e4fbb90 100644 --- a/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRNativeAudio.cpp +++ b/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRNativeAudio.cpp @@ -106,7 +106,7 @@ WTErr WCMRNativeAudioNoneDevice::SetCurrentBufferSize (int newSize) //same size, nothing to do. if (oldSize == newSize) return eNoErr; - + //see if this is one of our supported rates... std::vector<int>::iterator intIter = find(m_BufferSizes.begin(), m_BufferSizes.end(), newSize); if (intIter == m_BufferSizes.end()) @@ -114,14 +114,14 @@ WTErr WCMRNativeAudioNoneDevice::SetCurrentBufferSize (int newSize) //Can't change, perhaps use an "invalid param" type of error return eCommandLineParameter; } - + if (Streaming()) { //Can't change, perhaps use an "in use" type of error return eGenericErr; } - + return WCMRAudioDevice::SetCurrentBufferSize(newSize); } @@ -211,15 +211,15 @@ void WCMRNativeAudioNoneDevice::_SilenceThread() // VERY ROUGH IMPLEMENTATION: while(Streaming()) { - + uint64_t cycleEndTimeNanos = audioCallbackData.acdCycleStartTimeNanos + cyclePeriodNanos; m_pMyManager->NotifyClient (WCMRAudioDeviceManagerClient::AudioCallback, (void *)&audioCallbackData); - + audioCallbackData.acdSampleTime += buffer_size; - + int64_t timeToSleepUsecs = ((int64_t)cycleEndTimeNanos - (int64_t)__get_time_nanos())/1000; - + if (timeToSleepUsecs > 0) { _usleep (timeToSleepUsecs); } |